Index: chrome/browser/ui/webui/sync_promo/sync_promo_handler.cc |
diff --git a/chrome/browser/ui/webui/sync_promo/sync_promo_handler.cc b/chrome/browser/ui/webui/sync_promo/sync_promo_handler.cc |
index d685dc8b8ef3b41673172688a493364f67953d17..c4dc04f9c5d4a119a8ecdec839edb633d41b2991 100644 |
--- a/chrome/browser/ui/webui/sync_promo/sync_promo_handler.cc |
+++ b/chrome/browser/ui/webui/sync_promo/sync_promo_handler.cc |
@@ -209,6 +209,10 @@ void SyncPromoHandler::HandleCloseSyncPromo(const base::ListValue* args) { |
} |
void SyncPromoHandler::HandleInitializeSyncPromo(const base::ListValue* args) { |
+ // If this is a page reload, then we have to inform the login service |
+ // the old UI closed. If this is an initial load, this call will do nothing. |
+ GetLoginUIService()->LoginUIClosed(this); |
+ |
// Open the sync wizard to the login screen. |
OpenSyncSetup(true); |
// We don't need to compute anything for this, just do this every time. |