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

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

Issue 2128053002: Implements the feature notification for Quick Unlock (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Implements the feature notification for Quick Unlock Created 4 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
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 <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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698