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 c4dc04f9c5d4a119a8ecdec839edb633d41b2991..25306df345c400d4219423a70403afd53a348a11 100644 |
--- a/chrome/browser/ui/webui/sync_promo/sync_promo_handler.cc |
+++ b/chrome/browser/ui/webui/sync_promo/sync_promo_handler.cc |
@@ -209,12 +209,15 @@ 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); |
Evan Stade
2012/08/11 00:36:12
the code was calling ShowSetupUI (which called Ope
|
+ if (IsActiveLogin()) { |
+ // Page has been reloaded. We don't need to do initialization of the setup |
+ // handler but we do have to refresh the page. |
+ DisplayGaiaLogin(false); |
Andrew T Wilson (Slow)
2012/08/11 01:10:33
Hmmm. Is this the correct thing to do here? I'm co
Evan Stade
2012/08/11 01:28:55
that code always displays the gaia login when forc
|
+ } else { |
+ // Do setup and show the login page. |
+ OpenSyncSetup(true); |
+ } |
- // Open the sync wizard to the login screen. |
- OpenSyncSetup(true); |
// We don't need to compute anything for this, just do this every time. |
RecordUserFlowAction(SYNC_PROMO_VIEWED); |
// Increment view count first and show natural numbers in stats rather than 0 |