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

Side by Side Diff: chrome/browser/prefs/browser_prefs.cc

Issue 14801002: Switch Audio Preferences to per device. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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/prefs/browser_prefs.h" 5 #include "chrome/browser/prefs/browser_prefs.h"
6 6
7 #include "apps/prefs.h" 7 #include "apps/prefs.h"
8 #include "base/prefs/pref_registry_simple.h" 8 #include "base/prefs/pref_registry_simple.h"
9 #include "base/prefs/pref_service.h" 9 #include "base/prefs/pref_service.h"
10 #include "chrome/browser/about_flags.h" 10 #include "chrome/browser/about_flags.h"
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 #if defined(TOOLKIT_VIEWS) 109 #if defined(TOOLKIT_VIEWS)
110 #include "chrome/browser/ui/browser_view_prefs.h" 110 #include "chrome/browser/ui/browser_view_prefs.h"
111 #include "chrome/browser/ui/tabs/tab_strip_layout_type_prefs.h" 111 #include "chrome/browser/ui/tabs/tab_strip_layout_type_prefs.h"
112 #endif 112 #endif
113 113
114 #if defined(TOOLKIT_GTK) 114 #if defined(TOOLKIT_GTK)
115 #include "chrome/browser/ui/gtk/browser_window_gtk.h" 115 #include "chrome/browser/ui/gtk/browser_window_gtk.h"
116 #endif 116 #endif
117 117
118 #if defined(OS_CHROMEOS) 118 #if defined(OS_CHROMEOS)
119 #include "ash/ash_switches.h"
119 #include "chrome/browser/chromeos/app_mode/kiosk_app_manager.h" 120 #include "chrome/browser/chromeos/app_mode/kiosk_app_manager.h"
121 #include "chrome/browser/chromeos/audio/audio_devices_pref_handler_impl.h"
120 #include "chrome/browser/chromeos/audio/audio_handler.h" 122 #include "chrome/browser/chromeos/audio/audio_handler.h"
121 #include "chrome/browser/chromeos/audio/audio_pref_handler_impl.h" 123 #include "chrome/browser/chromeos/audio/audio_pref_handler_impl.h"
122 #include "chrome/browser/chromeos/customization_document.h" 124 #include "chrome/browser/chromeos/customization_document.h"
123 #include "chrome/browser/chromeos/display/display_preferences.h" 125 #include "chrome/browser/chromeos/display/display_preferences.h"
124 #include "chrome/browser/chromeos/login/login_utils.h" 126 #include "chrome/browser/chromeos/login/login_utils.h"
125 #include "chrome/browser/chromeos/login/oauth2_login_manager.h" 127 #include "chrome/browser/chromeos/login/oauth2_login_manager.h"
126 #include "chrome/browser/chromeos/login/startup_utils.h" 128 #include "chrome/browser/chromeos/login/startup_utils.h"
127 #include "chrome/browser/chromeos/login/user_image_manager.h" 129 #include "chrome/browser/chromeos/login/user_image_manager.h"
128 #include "chrome/browser/chromeos/login/user_manager.h" 130 #include "chrome/browser/chromeos/login/user_manager.h"
129 #include "chrome/browser/chromeos/login/wallpaper_manager.h" 131 #include "chrome/browser/chromeos/login/wallpaper_manager.h"
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 #endif 237 #endif
236 238
237 #if !defined(OS_ANDROID) 239 #if !defined(OS_ANDROID)
238 BackgroundModeManager::RegisterPrefs(registry); 240 BackgroundModeManager::RegisterPrefs(registry);
239 RegisterBrowserPrefs(registry); 241 RegisterBrowserPrefs(registry);
240 RegisterDefaultBrowserPromptPrefs(registry); 242 RegisterDefaultBrowserPromptPrefs(registry);
241 ManagedMode::RegisterPrefs(registry); 243 ManagedMode::RegisterPrefs(registry);
242 #endif 244 #endif
243 245
244 #if defined(OS_CHROMEOS) 246 #if defined(OS_CHROMEOS)
245 chromeos::AudioPrefHandlerImpl::RegisterPrefs(registry); 247 if (CommandLine::ForCurrentProcess()->
Pam (message me for reviews) 2013/05/02 15:11:40 I'm not too excited by this dependency on the comm
rkc 2013/05/02 18:46:09 Done.
248 HasSwitch(ash::switches::kAshDisableNewAudioHandler))
249 chromeos::AudioPrefHandlerImpl::RegisterPrefs(registry);
250 else
251 chromeos::AudioDevicesPrefHandlerImpl::RegisterPrefs(registry);
246 chromeos::DataPromoNotification::RegisterPrefs(registry); 252 chromeos::DataPromoNotification::RegisterPrefs(registry);
247 chromeos::DeviceOAuth2TokenService::RegisterPrefs(registry); 253 chromeos::DeviceOAuth2TokenService::RegisterPrefs(registry);
248 chromeos::device_settings_cache::RegisterPrefs(registry); 254 chromeos::device_settings_cache::RegisterPrefs(registry);
249 chromeos::language_prefs::RegisterPrefs(registry); 255 chromeos::language_prefs::RegisterPrefs(registry);
250 chromeos::KioskAppManager::RegisterPrefs(registry); 256 chromeos::KioskAppManager::RegisterPrefs(registry);
251 chromeos::LoginUtils::RegisterPrefs(registry); 257 chromeos::LoginUtils::RegisterPrefs(registry);
252 chromeos::Preferences::RegisterPrefs(registry); 258 chromeos::Preferences::RegisterPrefs(registry);
253 chromeos::ProxyConfigServiceImpl::RegisterPrefs(registry); 259 chromeos::ProxyConfigServiceImpl::RegisterPrefs(registry);
254 chromeos::RegisterDisplayLocalStatePrefs(registry); 260 chromeos::RegisterDisplayLocalStatePrefs(registry);
255 chromeos::ServicesCustomizationDocument::RegisterPrefs(registry); 261 chromeos::ServicesCustomizationDocument::RegisterPrefs(registry);
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
450 } 456 }
451 local_state->ClearPref(prefs::kLastPromptedGoogleURL); 457 local_state->ClearPref(prefs::kLastPromptedGoogleURL);
452 458
453 current_version |= GOOGLE_URL_TRACKER_PREFS; 459 current_version |= GOOGLE_URL_TRACKER_PREFS;
454 local_state->SetInteger(prefs::kMultipleProfilePrefMigration, 460 local_state->SetInteger(prefs::kMultipleProfilePrefMigration,
455 current_version); 461 current_version);
456 } 462 }
457 } 463 }
458 464
459 } // namespace chrome 465 } // namespace chrome
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698