| 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 24 matching lines...) Expand all Loading... |
| 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" | 41 #include "chrome/common/pref_names.h" |
| 42 #include "chrome/common/url_constants.h" | 42 #include "chrome/common/url_constants.h" |
| 43 #include "chrome/grit/chromium_strings.h" | 43 #include "chrome/grit/chromium_strings.h" |
| 44 #include "chrome/grit/generated_resources.h" | 44 #include "chrome/grit/generated_resources.h" |
| 45 #include "chrome/grit/locale_settings.h" |
| 45 #include "components/google/core/browser/google_util.h" | 46 #include "components/google/core/browser/google_util.h" |
| 46 #include "components/signin/core/browser/profile_oauth2_token_service.h" | 47 #include "components/signin/core/browser/profile_oauth2_token_service.h" |
| 47 #include "components/signin/core/browser/signin_error_controller.h" | 48 #include "components/signin/core/browser/signin_error_controller.h" |
| 48 #include "components/signin/core/browser/signin_metrics.h" | 49 #include "components/signin/core/browser/signin_metrics.h" |
| 49 #include "components/signin/core/common/profile_management_switches.h" | 50 #include "components/signin/core/common/profile_management_switches.h" |
| 50 #include "components/sync_driver/sync_prefs.h" | 51 #include "components/sync_driver/sync_prefs.h" |
| 51 #include "content/public/browser/render_view_host.h" | 52 #include "content/public/browser/render_view_host.h" |
| 52 #include "content/public/browser/web_contents.h" | 53 #include "content/public/browser/web_contents.h" |
| 53 #include "content/public/browser/web_contents_delegate.h" | 54 #include "content/public/browser/web_contents_delegate.h" |
| 54 #include "google_apis/gaia/gaia_auth_util.h" | 55 #include "google_apis/gaia/gaia_auth_util.h" |
| 55 #include "google_apis/gaia/gaia_constants.h" | 56 #include "google_apis/gaia/gaia_constants.h" |
| 56 #include "grit/locale_settings.h" | |
| 57 #include "net/base/url_util.h" | 57 #include "net/base/url_util.h" |
| 58 #include "ui/base/l10n/l10n_util.h" | 58 #include "ui/base/l10n/l10n_util.h" |
| 59 | 59 |
| 60 #if defined(OS_CHROMEOS) | 60 #if defined(OS_CHROMEOS) |
| 61 #include "components/signin/core/browser/signin_manager_base.h" | 61 #include "components/signin/core/browser/signin_manager_base.h" |
| 62 #else | 62 #else |
| 63 #include "components/signin/core/browser/signin_manager.h" | 63 #include "components/signin/core/browser/signin_manager.h" |
| 64 #endif | 64 #endif |
| 65 | 65 |
| 66 using content::WebContents; | 66 using content::WebContents; |
| (...skipping 890 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 957 | 957 |
| 958 LoginUIService* service = GetLoginUIService(); | 958 LoginUIService* service = GetLoginUIService(); |
| 959 DCHECK(service); | 959 DCHECK(service); |
| 960 service->current_login_ui()->FocusUI(); | 960 service->current_login_ui()->FocusUI(); |
| 961 return true; | 961 return true; |
| 962 } | 962 } |
| 963 | 963 |
| 964 LoginUIService* SyncSetupHandler::GetLoginUIService() const { | 964 LoginUIService* SyncSetupHandler::GetLoginUIService() const { |
| 965 return LoginUIServiceFactory::GetForProfile(GetProfile()); | 965 return LoginUIServiceFactory::GetForProfile(GetProfile()); |
| 966 } | 966 } |
| OLD | NEW |