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

Side by Side Diff: chrome/browser/chromeos/preferences.cc

Issue 18199003: Allow Chrome OS login profile to have different default pref values (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Comment addressed. Created 7 years, 5 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 | Annotate | Revision Log
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/preferences.h" 5 #include "chrome/browser/chromeos/preferences.h"
6 6
7 #include "ash/magnifier/magnifier_constants.h" 7 #include "ash/magnifier/magnifier_constants.h"
8 #include "ash/shell_delegate.h" 8 #include "ash/shell_delegate.h"
9 #include "base/chromeos/chromeos_version.h" 9 #include "base/chromeos/chromeos_version.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 } 59 }
60 60
61 // static 61 // static
62 void Preferences::RegisterPrefs(PrefRegistrySimple* registry) { 62 void Preferences::RegisterPrefs(PrefRegistrySimple* registry) {
63 registry->RegisterBooleanPref(prefs::kOwnerPrimaryMouseButtonRight, false); 63 registry->RegisterBooleanPref(prefs::kOwnerPrimaryMouseButtonRight, false);
64 registry->RegisterBooleanPref(prefs::kOwnerTapToClickEnabled, true); 64 registry->RegisterBooleanPref(prefs::kOwnerTapToClickEnabled, true);
65 registry->RegisterBooleanPref(prefs::kVirtualKeyboardEnabled, false); 65 registry->RegisterBooleanPref(prefs::kVirtualKeyboardEnabled, false);
66 } 66 }
67 67
68 // static 68 // static
69 void Preferences::RegisterUserPrefs( 69 void Preferences::RegisterProfilePrefs(
70 user_prefs::PrefRegistrySyncable* registry) { 70 user_prefs::PrefRegistrySyncable* registry) {
71 std::string hardware_keyboard_id; 71 std::string hardware_keyboard_id;
72 // TODO(yusukes): Remove the runtime hack. 72 // TODO(yusukes): Remove the runtime hack.
73 if (base::chromeos::IsRunningOnChromeOS()) { 73 if (base::chromeos::IsRunningOnChromeOS()) {
74 input_method::InputMethodManager* manager = 74 input_method::InputMethodManager* manager =
75 input_method::InputMethodManager::Get(); 75 input_method::InputMethodManager::Get();
76 if (manager) { 76 if (manager) {
77 hardware_keyboard_id = 77 hardware_keyboard_id =
78 manager->GetInputMethodUtil()->GetHardwareInputMethodId(); 78 manager->GetInputMethodUtil()->GetHardwareInputMethodId();
79 } 79 }
(...skipping 942 matching lines...) Expand 10 before | Expand all | Expand 10 after
1022 1022
1023 input_method::AutoRepeatRate rate; 1023 input_method::AutoRepeatRate rate;
1024 rate.initial_delay_in_ms = xkb_auto_repeat_delay_pref_.GetValue(); 1024 rate.initial_delay_in_ms = xkb_auto_repeat_delay_pref_.GetValue();
1025 rate.repeat_interval_in_ms = xkb_auto_repeat_interval_pref_.GetValue(); 1025 rate.repeat_interval_in_ms = xkb_auto_repeat_interval_pref_.GetValue();
1026 DCHECK(rate.initial_delay_in_ms > 0); 1026 DCHECK(rate.initial_delay_in_ms > 0);
1027 DCHECK(rate.repeat_interval_in_ms > 0); 1027 DCHECK(rate.repeat_interval_in_ms > 0);
1028 input_method::XKeyboard::SetAutoRepeatRate(rate); 1028 input_method::XKeyboard::SetAutoRepeatRate(rate);
1029 } 1029 }
1030 1030
1031 } // namespace chromeos 1031 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698