| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "chrome/browser/about_flags.h" | 7 #include "chrome/browser/about_flags.h" |
| 8 #include "chrome/browser/autofill/autofill_manager.h" | 8 #include "chrome/browser/autofill/autofill_manager.h" |
| 9 #include "chrome/browser/background_contents_service.h" | 9 #include "chrome/browser/background_contents_service.h" |
| 10 #include "chrome/browser/background_mode_manager.h" | 10 #include "chrome/browser/background_mode_manager.h" |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 #include "chrome/browser/ui/gtk/browser_window_gtk.h" | 65 #include "chrome/browser/ui/gtk/browser_window_gtk.h" |
| 66 #endif | 66 #endif |
| 67 | 67 |
| 68 #if defined(OS_CHROMEOS) | 68 #if defined(OS_CHROMEOS) |
| 69 #include "chrome/browser/chromeos/audio_mixer_alsa.h" | 69 #include "chrome/browser/chromeos/audio_mixer_alsa.h" |
| 70 #include "chrome/browser/chromeos/login/apply_services_customization.h" | 70 #include "chrome/browser/chromeos/login/apply_services_customization.h" |
| 71 #include "chrome/browser/chromeos/login/signed_settings_temp_storage.h" | 71 #include "chrome/browser/chromeos/login/signed_settings_temp_storage.h" |
| 72 #include "chrome/browser/chromeos/login/user_manager.h" | 72 #include "chrome/browser/chromeos/login/user_manager.h" |
| 73 #include "chrome/browser/chromeos/login/wizard_controller.h" | 73 #include "chrome/browser/chromeos/login/wizard_controller.h" |
| 74 #include "chrome/browser/chromeos/preferences.h" | 74 #include "chrome/browser/chromeos/preferences.h" |
| 75 #include "chrome/browser/chromeos/status/input_method_menu_button.h" | 75 #include "chrome/browser/chromeos/status/input_method_menu.h" |
| 76 #include "chrome/browser/chromeos/user_cros_settings_provider.h" | 76 #include "chrome/browser/chromeos/user_cros_settings_provider.h" |
| 77 #endif | 77 #endif |
| 78 | 78 |
| 79 namespace browser { | 79 namespace browser { |
| 80 | 80 |
| 81 void RegisterAllPrefs(PrefService* user_prefs, PrefService* local_state) { | 81 void RegisterAllPrefs(PrefService* user_prefs, PrefService* local_state) { |
| 82 RegisterLocalState(local_state); | 82 RegisterLocalState(local_state); |
| 83 RegisterUserPrefs(user_prefs); | 83 RegisterUserPrefs(user_prefs); |
| 84 } | 84 } |
| 85 | 85 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 102 TaskManager::RegisterPrefs(local_state); | 102 TaskManager::RegisterPrefs(local_state); |
| 103 geolocation::RegisterPrefs(local_state); | 103 geolocation::RegisterPrefs(local_state); |
| 104 AutoFillManager::RegisterBrowserPrefs(local_state); | 104 AutoFillManager::RegisterBrowserPrefs(local_state); |
| 105 BackgroundPageTracker::RegisterPrefs(local_state); | 105 BackgroundPageTracker::RegisterPrefs(local_state); |
| 106 NotificationUIManager::RegisterPrefs(local_state); | 106 NotificationUIManager::RegisterPrefs(local_state); |
| 107 #if defined(OS_CHROMEOS) | 107 #if defined(OS_CHROMEOS) |
| 108 chromeos::AudioMixerAlsa::RegisterPrefs(local_state); | 108 chromeos::AudioMixerAlsa::RegisterPrefs(local_state); |
| 109 chromeos::UserManager::RegisterPrefs(local_state); | 109 chromeos::UserManager::RegisterPrefs(local_state); |
| 110 chromeos::UserCrosSettingsProvider::RegisterPrefs(local_state); | 110 chromeos::UserCrosSettingsProvider::RegisterPrefs(local_state); |
| 111 WizardController::RegisterPrefs(local_state); | 111 WizardController::RegisterPrefs(local_state); |
| 112 chromeos::InputMethodMenuButton::RegisterPrefs(local_state); | 112 chromeos::InputMethodMenu::RegisterPrefs(local_state); |
| 113 chromeos::ApplyServicesCustomization::RegisterPrefs(local_state); | 113 chromeos::ApplyServicesCustomization::RegisterPrefs(local_state); |
| 114 chromeos::SignedSettingsTempStorage::RegisterPrefs(local_state); | 114 chromeos::SignedSettingsTempStorage::RegisterPrefs(local_state); |
| 115 #endif | 115 #endif |
| 116 } | 116 } |
| 117 | 117 |
| 118 void RegisterUserPrefs(PrefService* user_prefs) { | 118 void RegisterUserPrefs(PrefService* user_prefs) { |
| 119 // User prefs | 119 // User prefs |
| 120 AutoFillManager::RegisterUserPrefs(user_prefs); | 120 AutoFillManager::RegisterUserPrefs(user_prefs); |
| 121 SessionStartupPref::RegisterUserPrefs(user_prefs); | 121 SessionStartupPref::RegisterUserPrefs(user_prefs); |
| 122 Browser::RegisterUserPrefs(user_prefs); | 122 Browser::RegisterUserPrefs(user_prefs); |
| (...skipping 30 matching lines...) Expand all Loading... |
| 153 #endif | 153 #endif |
| 154 BackgroundContentsService::RegisterUserPrefs(user_prefs); | 154 BackgroundContentsService::RegisterUserPrefs(user_prefs); |
| 155 SigninManager::RegisterUserPrefs(user_prefs); | 155 SigninManager::RegisterUserPrefs(user_prefs); |
| 156 TemplateURLModel::RegisterUserPrefs(user_prefs); | 156 TemplateURLModel::RegisterUserPrefs(user_prefs); |
| 157 InstantController::RegisterUserPrefs(user_prefs); | 157 InstantController::RegisterUserPrefs(user_prefs); |
| 158 NetPrefObserver::RegisterPrefs(user_prefs); | 158 NetPrefObserver::RegisterPrefs(user_prefs); |
| 159 policy::ProfilePolicyContext::RegisterUserPrefs(user_prefs); | 159 policy::ProfilePolicyContext::RegisterUserPrefs(user_prefs); |
| 160 } | 160 } |
| 161 | 161 |
| 162 } // namespace browser | 162 } // namespace browser |
| OLD | NEW |