OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 #if defined(BROWSER_SYNC) | |
6 | |
7 #include "chrome/browser/sync/sync_setup_wizard.h" | 5 #include "chrome/browser/sync/sync_setup_wizard.h" |
8 | 6 |
9 #include "app/resource_bundle.h" | 7 #include "app/resource_bundle.h" |
10 #include "base/message_loop.h" | 8 #include "base/message_loop.h" |
11 #include "chrome/common/pref_names.h" | 9 #include "chrome/common/pref_names.h" |
12 #include "chrome/common/pref_service.h" | 10 #include "chrome/common/pref_service.h" |
13 #include "chrome/browser/browser_process.h" | 11 #include "chrome/browser/browser_process.h" |
14 #include "chrome/browser/dom_ui/chrome_url_data_manager.h" | 12 #include "chrome/browser/dom_ui/chrome_url_data_manager.h" |
15 #include "chrome/browser/sync/profile_sync_service.h" | 13 #include "chrome/browser/sync/profile_sync_service.h" |
16 #include "chrome/browser/sync/sync_setup_flow.h" | 14 #include "chrome/browser/sync/sync_setup_flow.h" |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 } | 187 } |
190 | 188 |
191 // static | 189 // static |
192 SyncSetupWizard::State SyncSetupWizard::GetEndStateForDiscreteRun( | 190 SyncSetupWizard::State SyncSetupWizard::GetEndStateForDiscreteRun( |
193 State start_state) { | 191 State start_state) { |
194 State result = start_state == GAIA_LOGIN ? GAIA_SUCCESS : DONE; | 192 State result = start_state == GAIA_LOGIN ? GAIA_SUCCESS : DONE; |
195 DCHECK_NE(DONE, result) << | 193 DCHECK_NE(DONE, result) << |
196 "Invalid start state for discrete run: " << start_state; | 194 "Invalid start state for discrete run: " << start_state; |
197 return result; | 195 return result; |
198 } | 196 } |
199 | |
200 #endif // defined(BROWSER_SYNC) | |
OLD | NEW |