OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/ui/webui/sync_setup_handler.h" | 5 #include "chrome/browser/ui/webui/sync_setup_handler.h" |
6 | 6 |
7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
8 #include "base/bind.h" | 8 #include "base/bind.h" |
9 #include "base/bind_helpers.h" | 9 #include "base/bind_helpers.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 20 matching lines...) Expand all Loading... |
31 #include "chrome/browser/sync/profile_sync_service_factory.h" | 31 #include "chrome/browser/sync/profile_sync_service_factory.h" |
32 #include "chrome/browser/ui/browser_finder.h" | 32 #include "chrome/browser/ui/browser_finder.h" |
33 #include "chrome/browser/ui/browser_navigator.h" | 33 #include "chrome/browser/ui/browser_navigator.h" |
34 #include "chrome/browser/ui/browser_window.h" | 34 #include "chrome/browser/ui/browser_window.h" |
35 #include "chrome/browser/ui/singleton_tabs.h" | 35 #include "chrome/browser/ui/singleton_tabs.h" |
36 #include "chrome/browser/ui/sync/signin_histogram.h" | 36 #include "chrome/browser/ui/sync/signin_histogram.h" |
37 #include "chrome/browser/ui/webui/options/options_handlers_helper.h" | 37 #include "chrome/browser/ui/webui/options/options_handlers_helper.h" |
38 #include "chrome/browser/ui/webui/signin/login_ui_service.h" | 38 #include "chrome/browser/ui/webui/signin/login_ui_service.h" |
39 #include "chrome/browser/ui/webui/signin/login_ui_service_factory.h" | 39 #include "chrome/browser/ui/webui/signin/login_ui_service_factory.h" |
40 #include "chrome/common/chrome_switches.h" | 40 #include "chrome/common/chrome_switches.h" |
41 #include "chrome/common/pref_names.h" | |
42 #include "chrome/common/url_constants.h" | 41 #include "chrome/common/url_constants.h" |
43 #include "chrome/grit/chromium_strings.h" | 42 #include "chrome/grit/chromium_strings.h" |
44 #include "chrome/grit/generated_resources.h" | 43 #include "chrome/grit/generated_resources.h" |
45 #include "chrome/grit/locale_settings.h" | 44 #include "chrome/grit/locale_settings.h" |
46 #include "components/google/core/browser/google_util.h" | 45 #include "components/google/core/browser/google_util.h" |
47 #include "components/signin/core/browser/profile_oauth2_token_service.h" | 46 #include "components/signin/core/browser/profile_oauth2_token_service.h" |
48 #include "components/signin/core/browser/signin_error_controller.h" | 47 #include "components/signin/core/browser/signin_error_controller.h" |
49 #include "components/signin/core/browser/signin_metrics.h" | 48 #include "components/signin/core/browser/signin_metrics.h" |
50 #include "components/signin/core/common/profile_management_switches.h" | 49 #include "components/signin/core/common/profile_management_switches.h" |
51 #include "components/sync_driver/sync_prefs.h" | 50 #include "components/sync_driver/sync_prefs.h" |
(...skipping 907 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
959 | 958 |
960 LoginUIService* service = GetLoginUIService(); | 959 LoginUIService* service = GetLoginUIService(); |
961 DCHECK(service); | 960 DCHECK(service); |
962 service->current_login_ui()->FocusUI(); | 961 service->current_login_ui()->FocusUI(); |
963 return true; | 962 return true; |
964 } | 963 } |
965 | 964 |
966 LoginUIService* SyncSetupHandler::GetLoginUIService() const { | 965 LoginUIService* SyncSetupHandler::GetLoginUIService() const { |
967 return LoginUIServiceFactory::GetForProfile(GetProfile()); | 966 return LoginUIServiceFactory::GetForProfile(GetProfile()); |
968 } | 967 } |
OLD | NEW |