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_flow.h" | 5 #include "chrome/browser/sync/sync_setup_flow.h" |
6 | 6 |
7 #include "base/callback.h" | 7 #include "base/callback.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/json/json_reader.h" | 9 #include "base/json/json_reader.h" |
10 #include "base/json/json_writer.h" | 10 #include "base/json/json_writer.h" |
11 #include "base/metrics/histogram.h" | 11 #include "base/metrics/histogram.h" |
12 #include "base/string_util.h" | 12 #include "base/string_util.h" |
13 #include "base/utf_string_conversions.h" | 13 #include "base/utf_string_conversions.h" |
14 #include "base/values.h" | 14 #include "base/values.h" |
15 #include "chrome/browser/platform_util.h" | |
16 #include "chrome/browser/prefs/pref_service.h" | 15 #include "chrome/browser/prefs/pref_service.h" |
17 #include "chrome/browser/profiles/profile.h" | 16 #include "chrome/browser/profiles/profile.h" |
18 #include "chrome/browser/sync/profile_sync_service.h" | 17 #include "chrome/browser/sync/profile_sync_service.h" |
| 18 #include "chrome/browser/sync/sync_setup_flow_handler.h" |
19 #include "chrome/browser/sync/syncable/model_type.h" | 19 #include "chrome/browser/sync/syncable/model_type.h" |
20 #include "chrome/browser/sync/sync_setup_flow_handler.h" | |
21 #include "chrome/browser/ui/browser_list.h" | 20 #include "chrome/browser/ui/browser_list.h" |
22 #include "chrome/common/chrome_switches.h" | 21 #include "chrome/common/chrome_switches.h" |
23 #include "chrome/common/net/gaia/google_service_auth_error.h" | 22 #include "chrome/common/net/gaia/google_service_auth_error.h" |
24 #include "chrome/common/pref_names.h" | 23 #include "chrome/common/pref_names.h" |
25 #include "chrome/common/url_constants.h" | 24 #include "chrome/common/url_constants.h" |
26 #include "grit/generated_resources.h" | 25 #include "grit/generated_resources.h" |
27 | 26 |
28 namespace { | 27 namespace { |
29 | 28 |
30 // Helper function to disable password sync. | 29 // Helper function to disable password sync. |
(...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
447 break; | 446 break; |
448 } | 447 } |
449 case SyncSetupWizard::DONE: | 448 case SyncSetupWizard::DONE: |
450 flow_handler_->ShowSetupDone( | 449 flow_handler_->ShowSetupDone( |
451 UTF16ToWide(service_->GetAuthenticatedUsername())); | 450 UTF16ToWide(service_->GetAuthenticatedUsername())); |
452 break; | 451 break; |
453 default: | 452 default: |
454 NOTREACHED() << "Invalid advance state: " << state; | 453 NOTREACHED() << "Invalid advance state: " << state; |
455 } | 454 } |
456 } | 455 } |
OLD | NEW |