| Index: chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc
|
| diff --git a/chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc b/chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc
|
| index 81ba74f9db6520289554b9f7c2cfdfd9b05e922a..d36f94e6b8b7fea24a6dc55f81529214ae258e34 100644
|
| --- a/chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc
|
| +++ b/chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc
|
| @@ -1076,10 +1076,15 @@ void SigninScreenHandler::HandleOpenProxySettings(const base::ListValue* args) {
|
| }
|
|
|
| void SigninScreenHandler::HandleLoginVisible(const base::ListValue* args) {
|
| - content::NotificationService::current()->Notify(
|
| - chrome::NOTIFICATION_LOGIN_WEBUI_VISIBLE,
|
| - content::NotificationService::AllSources(),
|
| - content::NotificationService::NoDetails());
|
| + if (!webui_visible_) {
|
| + // There might be multiple messages from OOBE UI so send notifications after
|
| + // the first one only.
|
| + content::NotificationService::current()->Notify(
|
| + chrome::NOTIFICATION_LOGIN_WEBUI_VISIBLE,
|
| + content::NotificationService::AllSources(),
|
| + content::NotificationService::NoDetails());
|
| + }
|
| + webui_visible_ = true;
|
| if (ScreenLocker::default_screen_locker())
|
| web_ui()->CallJavascriptFunction("login.AccountPickerScreen.setWallpaper");
|
| }
|
|
|