[go: nahoru, domu]

Don't pass in the parent window for the parent access code help dialog

When the parent access code feature first launched, there was no parent
passed in, and this regression was introduced in
https://crrev.com/c/2010950.
The parent window for this particular help dialog is small, and it is ok
for the help dialog fall back on the default size for dialogs without a
parent.

Bug: 1128724
Change-Id: I7fc75cb66ea51d4208065bd4e75da72843e25aab
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2982647
Reviewed-by: Aga Wronska <agawronska@chromium.org>
Reviewed-by: Roman Sorokin [CET] <rsorokin@chromium.org>
Commit-Queue: Courtney Wong <courtneywong@chromium.org>
Cr-Commit-Position: refs/heads/master@{#897559}
diff --git a/ash/login/login_screen_controller.cc b/ash/login/login_screen_controller.cc
index dd35ffd..671ec86 100644
--- a/ash/login/login_screen_controller.cc
+++ b/ash/login/login_screen_controller.cc
@@ -436,9 +436,8 @@
   client_->ShowAccountAccessHelpApp(parent_window);
 }
 
-void LoginScreenController::ShowParentAccessHelpApp(
-    gfx::NativeWindow parent_window) {
-  client_->ShowParentAccessHelpApp(parent_window);
+void LoginScreenController::ShowParentAccessHelpApp() {
+  client_->ShowParentAccessHelpApp();
 }
 
 void LoginScreenController::ShowLockScreenNotificationSettings() {