OLD | NEW |
---|---|
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 Loading... | |
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(State state) { | |
87 SyncSetupFlow* flow = flow_container_->get_flow(); | |
88 if (flow) { | |
89 flow->Focus(); | |
90 return; | |
Andrew T Wilson (Slow)
2011/07/11 18:12:51
Don't we still need to Step in the case that there
qsr (NOT THE RIGHT qsr)
2011/07/12 07:01:37
If you look at what was done in ProfileSyncService
| |
91 } | |
92 Step(state); | |
93 flow = flow_container_->get_flow(); | |
94 if (flow) | |
95 flow->ShowSyncSetup(); | |
tim (not reviewing)
2011/07/11 14:44:25
I think I see what changed that caused my confusio
| |
96 } | |
97 | |
86 SyncSetupFlow* SyncSetupWizard::AttachSyncSetupHandler( | 98 SyncSetupFlow* SyncSetupWizard::AttachSyncSetupHandler( |
87 SyncSetupFlowHandler* handler) { | 99 SyncSetupFlowHandler* handler) { |
88 SyncSetupFlow* flow = flow_container_->get_flow(); | 100 SyncSetupFlow* flow = flow_container_->get_flow(); |
89 if (!flow || !flow->AttachSyncSetupHandler(handler)) | 101 if (!flow || !flow->AttachSyncSetupHandler(handler)) |
90 return NULL; | 102 return NULL; |
91 | 103 |
92 return flow; | 104 return flow; |
93 } | 105 } |
OLD | NEW |