Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9293)

Unified Diff: chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc

Issue 10889024: [cros] Initialize OOBE in parallel when boot animation is disabled. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 f2f38db63b55f827a612ac2f22d5bf4a1cff2bed..65eddd508d70608a290046866118b1df6279caea 100644
--- a/chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc
+++ b/chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc
@@ -1058,10 +1058,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");
}

Powered by Google App Engine
This is Rietveld 408576698