Index: chrome/browser/chromeos/login/webui_login_display_host.cc |
diff --git a/chrome/browser/chromeos/login/webui_login_display_host.cc b/chrome/browser/chromeos/login/webui_login_display_host.cc |
index f244ac1b5f7ee202eb3f3d1ad1487a1953cade75..cef2871547ceae8ec0fa1750a6d509403d658380 100644 |
--- a/chrome/browser/chromeos/login/webui_login_display_host.cc |
+++ b/chrome/browser/chromeos/login/webui_login_display_host.cc |
@@ -209,6 +209,10 @@ void WebUILoginDisplayHost::Observe( |
ShowWebUI(); |
else |
StartPostponedWebUI(); |
+ // StartWizard / StartSignInScreen could be called multiple times through |
+ // the lifetime of host. |
+ // Make sure that subsequent calls are not postponed. |
+ waiting_for_wallpaper_load_ = false; |
} |
registrar_.Remove(this, |
chrome::NOTIFICATION_WALLPAPER_ANIMATION_FINISHED, |
@@ -319,10 +323,6 @@ void WebUILoginDisplayHost::StartPostponedWebUI() { |
return; |
} |
- // StartWizard / StartSignInScreen could be called multiple times through |
- // the lifetime of host. Make sure that subsequent calls are not postponed. |
- waiting_for_wallpaper_load_ = false; |
- |
// Wallpaper has finished loading before StartWizard/StartSignInScreen has |
// been called. In general this should not happen. |
// Let go through normal code path when one of those will be called. |