Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(138)

Side by Side Diff: chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc

Issue 1658793002: Update chrome for new prefs location. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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/signin_screen_handler.h" 5 #include "chrome/browser/ui/webui/chromeos/login/signin_screen_handler.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <vector> 10 #include <vector>
11 11
12 #include "ash/shell.h" 12 #include "ash/shell.h"
13 #include "ash/system/chromeos/devicetype_utils.h" 13 #include "ash/system/chromeos/devicetype_utils.h"
14 #include "ash/wm/lock_state_controller.h" 14 #include "ash/wm/lock_state_controller.h"
15 #include "base/bind.h" 15 #include "base/bind.h"
16 #include "base/location.h" 16 #include "base/location.h"
17 #include "base/logging.h" 17 #include "base/logging.h"
18 #include "base/macros.h" 18 #include "base/macros.h"
19 #include "base/metrics/histogram.h" 19 #include "base/metrics/histogram.h"
20 #include "base/prefs/pref_registry_simple.h"
21 #include "base/prefs/pref_service.h"
22 #include "base/prefs/scoped_user_pref_update.h"
23 #include "base/strings/string16.h" 20 #include "base/strings/string16.h"
24 #include "base/strings/string_util.h" 21 #include "base/strings/string_util.h"
25 #include "base/strings/stringprintf.h" 22 #include "base/strings/stringprintf.h"
26 #include "base/strings/utf_string_conversions.h" 23 #include "base/strings/utf_string_conversions.h"
27 #include "base/sys_info.h" 24 #include "base/sys_info.h"
28 #include "base/trace_event/trace_event.h" 25 #include "base/trace_event/trace_event.h"
29 #include "chrome/browser/browser_process.h" 26 #include "chrome/browser/browser_process.h"
30 #include "chrome/browser/browser_process_platform_part_chromeos.h" 27 #include "chrome/browser/browser_process_platform_part_chromeos.h"
31 #include "chrome/browser/browser_shutdown.h" 28 #include "chrome/browser/browser_shutdown.h"
32 #include "chrome/browser/chrome_notification_types.h" 29 #include "chrome/browser/chrome_notification_types.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 #include "chrome/common/url_constants.h" 61 #include "chrome/common/url_constants.h"
65 #include "chrome/grit/chromium_strings.h" 62 #include "chrome/grit/chromium_strings.h"
66 #include "chrome/grit/generated_resources.h" 63 #include "chrome/grit/generated_resources.h"
67 #include "chromeos/dbus/dbus_thread_manager.h" 64 #include "chromeos/dbus/dbus_thread_manager.h"
68 #include "chromeos/dbus/power_manager_client.h" 65 #include "chromeos/dbus/power_manager_client.h"
69 #include "chromeos/login/auth/key.h" 66 #include "chromeos/login/auth/key.h"
70 #include "chromeos/login/auth/user_context.h" 67 #include "chromeos/login/auth/user_context.h"
71 #include "chromeos/network/network_state.h" 68 #include "chromeos/network/network_state.h"
72 #include "chromeos/network/network_state_handler.h" 69 #include "chromeos/network/network_state_handler.h"
73 #include "components/login/localized_values_builder.h" 70 #include "components/login/localized_values_builder.h"
71 #include "components/prefs/pref_registry_simple.h"
72 #include "components/prefs/pref_service.h"
73 #include "components/prefs/scoped_user_pref_update.h"
74 #include "components/proximity_auth/screenlock_bridge.h" 74 #include "components/proximity_auth/screenlock_bridge.h"
75 #include "components/user_manager/known_user.h" 75 #include "components/user_manager/known_user.h"
76 #include "components/user_manager/user.h" 76 #include "components/user_manager/user.h"
77 #include "components/user_manager/user_manager.h" 77 #include "components/user_manager/user_manager.h"
78 #include "components/user_manager/user_type.h" 78 #include "components/user_manager/user_type.h"
79 #include "content/public/browser/render_frame_host.h" 79 #include "content/public/browser/render_frame_host.h"
80 #include "content/public/browser/web_contents.h" 80 #include "content/public/browser/web_contents.h"
81 #include "google_apis/gaia/gaia_auth_util.h" 81 #include "google_apis/gaia/gaia_auth_util.h"
82 #include "grit/components_strings.h" 82 #include "grit/components_strings.h"
83 #include "third_party/cros_system_api/dbus/service_constants.h" 83 #include "third_party/cros_system_api/dbus/service_constants.h"
(...skipping 1302 matching lines...) Expand 10 before | Expand all | Expand 10 after
1386 return gaia_screen_handler_->frame_error(); 1386 return gaia_screen_handler_->frame_error();
1387 } 1387 }
1388 1388
1389 void SigninScreenHandler::OnCapsLockChanged(bool enabled) { 1389 void SigninScreenHandler::OnCapsLockChanged(bool enabled) {
1390 caps_lock_enabled_ = enabled; 1390 caps_lock_enabled_ = enabled;
1391 if (page_is_ready()) 1391 if (page_is_ready())
1392 CallJS("login.AccountPickerScreen.setCapsLockState", caps_lock_enabled_); 1392 CallJS("login.AccountPickerScreen.setCapsLockState", caps_lock_enabled_);
1393 } 1393 }
1394 1394
1395 } // namespace chromeos 1395 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698