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

Unified Diff: chrome/browser/chromeos/audio/audio_handler.cc

Issue 11570009: Split PrefService into PrefService, PrefServiceSimple and PrefServiceSyncable. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address review comments. Created 8 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/audio/audio_handler.cc
diff --git a/chrome/browser/chromeos/audio/audio_handler.cc b/chrome/browser/chromeos/audio/audio_handler.cc
index bb10933a9e4210502f93a353e8571e8ce84190cb..6d3da0dfb15ca791db39a3a5cbed76b2b7992b17 100644
--- a/chrome/browser/chromeos/audio/audio_handler.cc
+++ b/chrome/browser/chromeos/audio/audio_handler.cc
@@ -78,30 +78,26 @@ AudioHandler* AudioHandler::GetInstance() {
}
// static
-void AudioHandler::RegisterPrefs(PrefService* local_state) {
+void AudioHandler::RegisterPrefs(PrefServiceSimple* local_state) {
if (!local_state->FindPreference(prefs::kAudioVolumePercent)) {
local_state->RegisterDoublePref(prefs::kAudioVolumePercent,
- kDefaultVolumePercent,
- PrefService::UNSYNCABLE_PREF);
+ kDefaultVolumePercent);
}
if (!local_state->FindPreference(prefs::kAudioMute)) {
local_state->RegisterIntegerPref(prefs::kAudioMute,
- kPrefMuteOff,
- PrefService::UNSYNCABLE_PREF);
+ kPrefMuteOff);
}
if (!local_state->FindPreference(prefs::kAudioOutputAllowed)) {
// Register the prefs backing the audio muting policies.
local_state->RegisterBooleanPref(prefs::kAudioOutputAllowed,
- true,
- PrefService::UNSYNCABLE_PREF);
+ true);
}
// This pref has moved to the media subsystem but we should verify it is there
// before we use it.
if (!local_state->FindPreference(prefs::kAudioCaptureAllowed)) {
local_state->RegisterBooleanPref(prefs::kAudioCaptureAllowed,
- true,
- PrefService::UNSYNCABLE_PREF);
+ true);
}
}

Powered by Google App Engine
This is Rietveld 408576698