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

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

Issue 2552203007: Public Sessions - prompt the user for pageCapture requests (Closed)
Patch Set: Unused variable Created 4 years 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 326 matching lines...) Expand 10 before | Expand all | Expand 10 after
337 337
338 registry->RegisterBooleanPref(prefs::kHatsDeviceIsSelected, false); 338 registry->RegisterBooleanPref(prefs::kHatsDeviceIsSelected, false);
339 339
340 registry->RegisterBooleanPref(prefs::kQuickUnlockFeatureNotificationShown, 340 registry->RegisterBooleanPref(prefs::kQuickUnlockFeatureNotificationShown,
341 false); 341 false);
342 342
343 // We don't sync EOL related prefs because they are device specific. 343 // We don't sync EOL related prefs because they are device specific.
344 registry->RegisterBooleanPref(prefs::kEolNotificationDismissed, false); 344 registry->RegisterBooleanPref(prefs::kEolNotificationDismissed, false);
345 registry->RegisterIntegerPref(prefs::kEolStatus, 345 registry->RegisterIntegerPref(prefs::kEolStatus,
346 update_engine::EndOfLifeStatus::kSupported); 346 update_engine::EndOfLifeStatus::kSupported);
347
348 registry->RegisterDictionaryPref(
349 prefs::kPublicSessionPermissionsUserChoiceCache);
347 } 350 }
348 351
349 void Preferences::InitUserPrefs(sync_preferences::PrefServiceSyncable* prefs) { 352 void Preferences::InitUserPrefs(sync_preferences::PrefServiceSyncable* prefs) {
350 prefs_ = prefs; 353 prefs_ = prefs;
351 354
352 BooleanPrefMember::NamedChangeCallback callback = 355 BooleanPrefMember::NamedChangeCallback callback =
353 base::Bind(&Preferences::OnPreferenceChanged, base::Unretained(this)); 356 base::Bind(&Preferences::OnPreferenceChanged, base::Unretained(this));
354 357
355 performance_tracing_enabled_.Init(prefs::kPerformanceTracingEnabled, 358 performance_tracing_enabled_.Init(prefs::kPerformanceTracingEnabled,
356 prefs, callback); 359 prefs, callback);
(...skipping 437 matching lines...) Expand 10 before | Expand all | Expand 10 after
794 touch_hud_projection_enabled_.SetValue(enabled); 797 touch_hud_projection_enabled_.SetValue(enabled);
795 } 798 }
796 799
797 void Preferences::ActiveUserChanged(const user_manager::User* active_user) { 800 void Preferences::ActiveUserChanged(const user_manager::User* active_user) {
798 if (active_user != user_) 801 if (active_user != user_)
799 return; 802 return;
800 ApplyPreferences(REASON_ACTIVE_USER_CHANGED, ""); 803 ApplyPreferences(REASON_ACTIVE_USER_CHANGED, "");
801 } 804 }
802 805
803 } // namespace chromeos 806 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698