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

Unified Diff: chrome/browser/ui/webui/sync_promo/sync_promo_handler.cc

Issue 10831273: Handle refresh on sync setup page. (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/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

Powered by Google App Engine
This is Rietveld 408576698