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

Side by Side Diff: chrome/browser/media/media_capture_devices_dispatcher.cc

Issue 1102733002: Remove most occurences of PrefRegistrySyncable::UNSYNCABLE_PREF (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@prefs-add-reg-funcs
Patch Set: Created 5 years, 8 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/media/media_capture_devices_dispatcher.h" 5 #include "chrome/browser/media/media_capture_devices_dispatcher.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/metrics/field_trial.h" 9 #include "base/metrics/field_trial.h"
10 #include "base/prefs/pref_service.h" 10 #include "base/prefs/pref_service.h"
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 base::CommandLine::ForCurrentProcess()->AppendSwitch( 283 base::CommandLine::ForCurrentProcess()->AppendSwitch(
284 switches::kEnableAVFoundation); 284 switches::kEnableAVFoundation);
285 } 285 }
286 #endif 286 #endif
287 } 287 }
288 288
289 MediaCaptureDevicesDispatcher::~MediaCaptureDevicesDispatcher() {} 289 MediaCaptureDevicesDispatcher::~MediaCaptureDevicesDispatcher() {}
290 290
291 void MediaCaptureDevicesDispatcher::RegisterProfilePrefs( 291 void MediaCaptureDevicesDispatcher::RegisterProfilePrefs(
292 user_prefs::PrefRegistrySyncable* registry) { 292 user_prefs::PrefRegistrySyncable* registry) {
293 registry->RegisterStringPref( 293 registry->RegisterStringPref(prefs::kDefaultAudioCaptureDevice,
294 prefs::kDefaultAudioCaptureDevice, 294 std::string());
295 std::string(), 295 registry->RegisterStringPref(prefs::kDefaultVideoCaptureDevice,
296 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); 296 std::string());
297 registry->RegisterStringPref(
298 prefs::kDefaultVideoCaptureDevice,
299 std::string(),
300 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
301 } 297 }
302 298
303 void MediaCaptureDevicesDispatcher::AddObserver(Observer* observer) { 299 void MediaCaptureDevicesDispatcher::AddObserver(Observer* observer) {
304 DCHECK_CURRENTLY_ON(BrowserThread::UI); 300 DCHECK_CURRENTLY_ON(BrowserThread::UI);
305 if (!observers_.HasObserver(observer)) 301 if (!observers_.HasObserver(observer))
306 observers_.AddObserver(observer); 302 observers_.AddObserver(observer);
307 } 303 }
308 304
309 void MediaCaptureDevicesDispatcher::RemoveObserver(Observer* observer) { 305 void MediaCaptureDevicesDispatcher::RemoveObserver(Observer* observer) {
310 DCHECK_CURRENTLY_ON(BrowserThread::UI); 306 DCHECK_CURRENTLY_ON(BrowserThread::UI);
(...skipping 832 matching lines...) Expand 10 before | Expand all | Expand 10 after
1143 1139
1144 void MediaCaptureDevicesDispatcher::SetTestAudioCaptureDevices( 1140 void MediaCaptureDevicesDispatcher::SetTestAudioCaptureDevices(
1145 const MediaStreamDevices& devices) { 1141 const MediaStreamDevices& devices) {
1146 test_audio_devices_ = devices; 1142 test_audio_devices_ = devices;
1147 } 1143 }
1148 1144
1149 void MediaCaptureDevicesDispatcher::SetTestVideoCaptureDevices( 1145 void MediaCaptureDevicesDispatcher::SetTestVideoCaptureDevices(
1150 const MediaStreamDevices& devices) { 1146 const MediaStreamDevices& devices) {
1151 test_video_devices_ = devices; 1147 test_video_devices_ = devices;
1152 } 1148 }
OLDNEW
« no previous file with comments | « chrome/browser/google/google_url_tracker_factory.cc ('k') | chrome/browser/media/media_device_id_salt.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698