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

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

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

Powered by Google App Engine
This is Rietveld 408576698