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 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
311 registry->RegisterBooleanPref(prefs::kCaptivePortalAuthenticationIgnoresProxy, | 311 registry->RegisterBooleanPref(prefs::kCaptivePortalAuthenticationIgnoresProxy, |
312 true); | 312 true); |
313 | 313 |
314 registry->RegisterBooleanPref(prefs::kForceMaximizeOnFirstRun, false); | 314 registry->RegisterBooleanPref(prefs::kForceMaximizeOnFirstRun, false); |
315 | 315 |
316 registry->RegisterBooleanPref(prefs::kLanguageImeMenuActivated, false); | 316 registry->RegisterBooleanPref(prefs::kLanguageImeMenuActivated, false); |
317 | 317 |
318 registry->RegisterInt64Pref(prefs::kHatsLastInteractionTimestamp, | 318 registry->RegisterInt64Pref(prefs::kHatsLastInteractionTimestamp, |
319 base::Time().ToInternalValue()); | 319 base::Time().ToInternalValue()); |
320 | 320 |
| 321 registry->RegisterBooleanPref(prefs::kQuickUnlockFeatureNotificationShown, |
| 322 false); |
| 323 |
321 // We don't sync EOL related prefs because they are device specific. | 324 // We don't sync EOL related prefs because they are device specific. |
322 registry->RegisterBooleanPref(prefs::kEolNotificationDismissed, false); | 325 registry->RegisterBooleanPref(prefs::kEolNotificationDismissed, false); |
323 registry->RegisterIntegerPref(prefs::kEolStatus, | 326 registry->RegisterIntegerPref(prefs::kEolStatus, |
324 update_engine::EndOfLifeStatus::kSupported); | 327 update_engine::EndOfLifeStatus::kSupported); |
325 } | 328 } |
326 | 329 |
327 void Preferences::InitUserPrefs(syncable_prefs::PrefServiceSyncable* prefs) { | 330 void Preferences::InitUserPrefs(syncable_prefs::PrefServiceSyncable* prefs) { |
328 prefs_ = prefs; | 331 prefs_ = prefs; |
329 | 332 |
330 BooleanPrefMember::NamedChangeCallback callback = | 333 BooleanPrefMember::NamedChangeCallback callback = |
(...skipping 439 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
770 touch_hud_projection_enabled_.SetValue(enabled); | 773 touch_hud_projection_enabled_.SetValue(enabled); |
771 } | 774 } |
772 | 775 |
773 void Preferences::ActiveUserChanged(const user_manager::User* active_user) { | 776 void Preferences::ActiveUserChanged(const user_manager::User* active_user) { |
774 if (active_user != user_) | 777 if (active_user != user_) |
775 return; | 778 return; |
776 ApplyPreferences(REASON_ACTIVE_USER_CHANGED, ""); | 779 ApplyPreferences(REASON_ACTIVE_USER_CHANGED, ""); |
777 } | 780 } |
778 | 781 |
779 } // namespace chromeos | 782 } // namespace chromeos |
OLD | NEW |