OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/chromeos/login/gaia_screen_handler.h" | 5 #include "chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/metrics/histogram.h" | 9 #include "base/metrics/histogram.h" |
10 #include "base/prefs/pref_service.h" | 10 #include "base/prefs/pref_service.h" |
11 #include "base/strings/utf_string_conversions.h" | 11 #include "base/strings/utf_string_conversions.h" |
12 #include "base/values.h" | 12 #include "base/values.h" |
13 #include "chrome/browser/browser_process.h" | 13 #include "chrome/browser/browser_process.h" |
14 #include "chrome/browser/browser_shutdown.h" | 14 #include "chrome/browser/browser_shutdown.h" |
15 #include "chrome/browser/chromeos/input_method/input_method_util.h" | 15 #include "chrome/browser/chromeos/input_method/input_method_util.h" |
16 #include "chrome/browser/chromeos/language_preferences.h" | 16 #include "chrome/browser/chromeos/language_preferences.h" |
17 #include "chrome/browser/chromeos/login/ui/user_adding_screen.h" | 17 #include "chrome/browser/chromeos/login/ui/user_adding_screen.h" |
18 #include "chrome/browser/chromeos/policy/consumer_management_service.h" | 18 #include "chrome/browser/chromeos/policy/consumer_management_service.h" |
19 #include "chrome/browser/chromeos/profiles/profile_helper.h" | 19 #include "chrome/browser/chromeos/profiles/profile_helper.h" |
20 #include "chrome/browser/chromeos/settings/cros_settings.h" | 20 #include "chrome/browser/chromeos/settings/cros_settings.h" |
21 #include "chrome/browser/io_thread.h" | 21 #include "chrome/browser/io_thread.h" |
22 #include "chrome/browser/ui/webui/chromeos/login/signin_screen_handler.h" | 22 #include "chrome/browser/ui/webui/chromeos/login/signin_screen_handler.h" |
23 #include "chrome/browser/ui/webui/signin/inline_login_ui.h" | 23 #include "chrome/browser/ui/webui/signin/inline_login_ui.h" |
24 #include "chrome/common/chrome_version_info.h" | 24 #include "chrome/common/chrome_version_info.h" |
25 #include "chrome/common/pref_names.h" | 25 #include "chrome/common/pref_names.h" |
26 #include "chrome/grit/generated_resources.h" | 26 #include "chrome/grit/generated_resources.h" |
27 #include "chromeos/chromeos_switches.h" | 27 #include "chromeos/chromeos_switches.h" |
28 #include "chromeos/ime/input_method_manager.h" | |
29 #include "chromeos/settings/cros_settings_names.h" | 28 #include "chromeos/settings/cros_settings_names.h" |
30 #include "components/user_manager/user_manager.h" | 29 #include "components/user_manager/user_manager.h" |
31 #include "content/public/browser/browser_thread.h" | 30 #include "content/public/browser/browser_thread.h" |
32 #include "content/public/browser/render_frame_host.h" | 31 #include "content/public/browser/render_frame_host.h" |
33 #include "google_apis/gaia/gaia_auth_util.h" | 32 #include "google_apis/gaia/gaia_auth_util.h" |
34 #include "google_apis/gaia/gaia_switches.h" | 33 #include "google_apis/gaia/gaia_switches.h" |
35 #include "google_apis/gaia/gaia_urls.h" | 34 #include "google_apis/gaia/gaia_urls.h" |
| 35 #include "ui/base/ime/chromeos/input_method_manager.h" |
36 #include "ui/base/l10n/l10n_util.h" | 36 #include "ui/base/l10n/l10n_util.h" |
37 | 37 |
38 using content::BrowserThread; | 38 using content::BrowserThread; |
39 | 39 |
40 namespace chromeos { | 40 namespace chromeos { |
41 | 41 |
42 namespace { | 42 namespace { |
43 | 43 |
44 const char kJsScreenPath[] = "login.GaiaSigninScreen"; | 44 const char kJsScreenPath[] = "login.GaiaSigninScreen"; |
45 const char kAuthIframeParentName[] = "signin-frame"; | 45 const char kAuthIframeParentName[] = "signin-frame"; |
(...skipping 690 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
736 | 736 |
737 SigninScreenHandlerDelegate* GaiaScreenHandler::Delegate() { | 737 SigninScreenHandlerDelegate* GaiaScreenHandler::Delegate() { |
738 DCHECK(signin_screen_handler_); | 738 DCHECK(signin_screen_handler_); |
739 return signin_screen_handler_->delegate_; | 739 return signin_screen_handler_->delegate_; |
740 } | 740 } |
741 | 741 |
742 void GaiaScreenHandler::SetSigninScreenHandler(SigninScreenHandler* handler) { | 742 void GaiaScreenHandler::SetSigninScreenHandler(SigninScreenHandler* handler) { |
743 signin_screen_handler_ = handler; | 743 signin_screen_handler_ = handler; |
744 } | 744 } |
745 } // namespace chromeos | 745 } // namespace chromeos |
OLD | NEW |