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

Side by Side 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: 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/sync/sync_setup_wizard.h" 5 #include "chrome/browser/sync/sync_setup_wizard.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <ostream> 8 #include <ostream>
9 9
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 bool SyncSetupWizard::IsVisible() const { 76 bool SyncSetupWizard::IsVisible() const {
77 return flow_container_->get_flow() != NULL; 77 return flow_container_->get_flow() != NULL;
78 } 78 }
79 79
80 void SyncSetupWizard::Focus() { 80 void SyncSetupWizard::Focus() {
81 SyncSetupFlow* flow = flow_container_->get_flow(); 81 SyncSetupFlow* flow = flow_container_->get_flow();
82 if (flow) 82 if (flow)
83 flow->Focus(); 83 flow->Focus();
84 } 84 }
85 85
86 void SyncSetupWizard::ShowSyncSetup() {
87 SyncSetupFlow* flow = flow_container_->get_flow();
88 if (flow)
89 flow->ShowSyncSetup();
tim (not reviewing) 2011/07/07 17:49:47 this just looks like a sub-case of Step as impleme
qsr (NOT THE RIGHT qsr) 2011/07/08 08:51:43 This is calling ShowSyncSetup method on flow, that
90 }
91
86 SyncSetupFlow* SyncSetupWizard::AttachSyncSetupHandler( 92 SyncSetupFlow* SyncSetupWizard::AttachSyncSetupHandler(
87 SyncSetupFlowHandler* handler) { 93 SyncSetupFlowHandler* handler) {
88 SyncSetupFlow* flow = flow_container_->get_flow(); 94 SyncSetupFlow* flow = flow_container_->get_flow();
89 if (!flow || !flow->AttachSyncSetupHandler(handler)) 95 if (!flow || !flow->AttachSyncSetupHandler(handler))
90 return NULL; 96 return NULL;
91 97
92 return flow; 98 return flow;
93 } 99 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698