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

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

Issue 7193031: Move UI specific implementation from ProfileSyncService to SyncSetupFlowHandler. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Upload after merge. 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_wizard.h ('k') | chrome/browser/ui/webui/options/sync_setup_handler.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/sync_setup_wizard.cc
diff --git a/chrome/browser/sync/sync_setup_wizard.cc b/chrome/browser/sync/sync_setup_wizard.cc
index b8dc3dd27d94d098911a45d81cdf6818a39a8a12..18315e1bd0b154d57f7482152c2e2d8c5369c072 100644
--- a/chrome/browser/sync/sync_setup_wizard.cc
+++ b/chrome/browser/sync/sync_setup_wizard.cc
@@ -83,6 +83,18 @@ void SyncSetupWizard::Focus() {
flow->Focus();
}
+void SyncSetupWizard::ShowSyncSetup(State state) {
+ SyncSetupFlow* flow = flow_container_->get_flow();
+ if (flow) {
+ flow->Focus();
+ return;
+ }
+ Step(state);
+ flow = flow_container_->get_flow();
+ if (flow)
+ flow->ShowSyncSetup();
+}
+
SyncSetupFlow* SyncSetupWizard::AttachSyncSetupHandler(
SyncSetupFlowHandler* handler) {
SyncSetupFlow* flow = flow_container_->get_flow();
« no previous file with comments | « chrome/browser/sync/sync_setup_wizard.h ('k') | chrome/browser/ui/webui/options/sync_setup_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698