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

Side by Side Diff: chrome/browser/chromeos/system/input_device_settings.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) 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/chromeos/system/input_device_settings.h" 5 #include "chrome/browser/chromeos/system/input_device_settings.h"
6 6
7 #include "base/prefs/pref_registry_simple.h"
8 #include "base/prefs/pref_service.h"
9 #include "chrome/browser/browser_process.h" 7 #include "chrome/browser/browser_process.h"
10 #include "chrome/browser/chromeos/policy/browser_policy_connector_chromeos.h" 8 #include "chrome/browser/chromeos/policy/browser_policy_connector_chromeos.h"
11 #include "chrome/browser/chromeos/policy/device_cloud_policy_manager_chromeos.h" 9 #include "chrome/browser/chromeos/policy/device_cloud_policy_manager_chromeos.h"
12 #include "chrome/common/pref_names.h" 10 #include "chrome/common/pref_names.h"
13 #include "chromeos/system/statistics_provider.h" 11 #include "chromeos/system/statistics_provider.h"
12 #include "components/prefs/pref_registry_simple.h"
13 #include "components/prefs/pref_service.h"
14 14
15 namespace chromeos { 15 namespace chromeos {
16 namespace system { 16 namespace system {
17 17
18 TouchpadSettings::TouchpadSettings() { 18 TouchpadSettings::TouchpadSettings() {
19 } 19 }
20 20
21 TouchpadSettings& TouchpadSettings::operator=(const TouchpadSettings& other) { 21 TouchpadSettings& TouchpadSettings::operator=(const TouchpadSettings& other) {
22 if (&other != this) { 22 if (&other != this) {
23 sensitivity_ = other.sensitivity_; 23 sensitivity_ = other.sensitivity_;
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 local_state->HasPrefPath(::prefs::kTouchPadEnabled) 264 local_state->HasPrefPath(::prefs::kTouchPadEnabled)
265 ? local_state->GetBoolean(::prefs::kTouchPadEnabled) 265 ? local_state->GetBoolean(::prefs::kTouchPadEnabled)
266 : true; 266 : true;
267 267
268 local_state->SetBoolean(::prefs::kTouchPadEnabled, !touch_pad_status); 268 local_state->SetBoolean(::prefs::kTouchPadEnabled, !touch_pad_status);
269 SetInternalTouchpadEnabled(!touch_pad_status); 269 SetInternalTouchpadEnabled(!touch_pad_status);
270 } 270 }
271 271
272 } // namespace system 272 } // namespace system
273 } // namespace chromeos 273 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/system/device_disabling_manager_unittest.cc ('k') | chrome/browser/chromeos/system/system_clock.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698