| 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/chromeos/preferences.h" | 5 #include "chrome/browser/chromeos/preferences.h" |
| 6 | 6 |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "ash/autoclick/autoclick_controller.h" | 9 #include "ash/autoclick/autoclick_controller.h" |
| 10 #include "ash/common/accessibility_types.h" | 10 #include "ash/common/accessibility_types.h" |
| (...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 293 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); | 293 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); |
| 294 | 294 |
| 295 // Initially all existing users would see "What's new" for current version | 295 // Initially all existing users would see "What's new" for current version |
| 296 // after update. | 296 // after update. |
| 297 registry->RegisterStringPref(prefs::kChromeOSReleaseNotesVersion, | 297 registry->RegisterStringPref(prefs::kChromeOSReleaseNotesVersion, |
| 298 "0.0.0.0", | 298 "0.0.0.0", |
| 299 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); | 299 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); |
| 300 | 300 |
| 301 registry->RegisterBooleanPref(prefs::kExternalStorageDisabled, false); | 301 registry->RegisterBooleanPref(prefs::kExternalStorageDisabled, false); |
| 302 | 302 |
| 303 registry->RegisterBooleanPref(prefs::kExternalStorageReadOnly, false); |
| 304 |
| 303 registry->RegisterStringPref(prefs::kTermsOfServiceURL, ""); | 305 registry->RegisterStringPref(prefs::kTermsOfServiceURL, ""); |
| 304 | 306 |
| 305 registry->RegisterBooleanPref(prefs::kTouchHudProjectionEnabled, false); | 307 registry->RegisterBooleanPref(prefs::kTouchHudProjectionEnabled, false); |
| 306 | 308 |
| 307 registry->RegisterBooleanPref(prefs::kTouchVirtualKeyboardEnabled, false); | 309 registry->RegisterBooleanPref(prefs::kTouchVirtualKeyboardEnabled, false); |
| 308 | 310 |
| 309 input_method::InputMethodSyncer::RegisterProfilePrefs(registry); | 311 input_method::InputMethodSyncer::RegisterProfilePrefs(registry); |
| 310 | 312 |
| 311 registry->RegisterBooleanPref( | 313 registry->RegisterBooleanPref( |
| 312 prefs::kResolveTimezoneByGeolocation, true, | 314 prefs::kResolveTimezoneByGeolocation, true, |
| (...skipping 464 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 777 touch_hud_projection_enabled_.SetValue(enabled); | 779 touch_hud_projection_enabled_.SetValue(enabled); |
| 778 } | 780 } |
| 779 | 781 |
| 780 void Preferences::ActiveUserChanged(const user_manager::User* active_user) { | 782 void Preferences::ActiveUserChanged(const user_manager::User* active_user) { |
| 781 if (active_user != user_) | 783 if (active_user != user_) |
| 782 return; | 784 return; |
| 783 ApplyPreferences(REASON_ACTIVE_USER_CHANGED, ""); | 785 ApplyPreferences(REASON_ACTIVE_USER_CHANGED, ""); |
| 784 } | 786 } |
| 785 | 787 |
| 786 } // namespace chromeos | 788 } // namespace chromeos |
| OLD | NEW |