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

Unified Diff: chrome/browser/sync/sync_setup_flow.cc

Issue 7465098: Sync UI: Fix issue when clicking sync error link twice. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Show the dialog when clicking the link Created 9 years, 5 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
« no previous file with comments | « chrome/browser/sync/sync_setup_flow.h ('k') | chrome/browser/sync/sync_setup_wizard.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/sync_setup_flow.cc
diff --git a/chrome/browser/sync/sync_setup_flow.cc b/chrome/browser/sync/sync_setup_flow.cc
index 8230ce96c11912a24bd9a7cb17de81e3ea2e3c16..e5ae24c8c8a6d692ce17bef0b5446fd72e5be977 100644
--- a/chrome/browser/sync/sync_setup_flow.cc
+++ b/chrome/browser/sync/sync_setup_flow.cc
@@ -191,6 +191,10 @@ bool SyncSetupFlow::AttachSyncSetupHandler(SyncSetupFlowHandler* handler) {
return true;
}
+bool SyncSetupFlow::IsAttached() const {
+ return flow_handler_ != NULL;
+}
+
void SyncSetupFlow::Advance(SyncSetupWizard::State advance_state) {
if (!ShouldAdvance(advance_state)) {
LOG(WARNING) << "Invalid state change from "
@@ -198,7 +202,8 @@ void SyncSetupFlow::Advance(SyncSetupWizard::State advance_state) {
return;
}
- ActivateState(advance_state);
+ if (flow_handler_)
+ ActivateState(advance_state);
}
void SyncSetupFlow::Focus() {
« no previous file with comments | « chrome/browser/sync/sync_setup_flow.h ('k') | chrome/browser/sync/sync_setup_wizard.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698