OLD | NEW |
---|---|
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/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/accessibility/invert_bubble_prefs.h" | 8 #include "chrome/browser/accessibility/invert_bubble_prefs.h" |
9 #include "chrome/browser/autofill/autofill_manager.h" | 9 #include "chrome/browser/autofill/autofill_manager.h" |
10 #include "chrome/browser/background/background_mode_manager.h" | 10 #include "chrome/browser/background/background_mode_manager.h" |
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
163 chromeos::AudioHandler::RegisterPrefs(local_state); | 163 chromeos::AudioHandler::RegisterPrefs(local_state); |
164 chromeos::language_prefs::RegisterPrefs(local_state); | 164 chromeos::language_prefs::RegisterPrefs(local_state); |
165 chromeos::DataPromoNotification::RegisterPrefs(local_state); | 165 chromeos::DataPromoNotification::RegisterPrefs(local_state); |
166 chromeos::ProxyConfigServiceImpl::RegisterPrefs(local_state); | 166 chromeos::ProxyConfigServiceImpl::RegisterPrefs(local_state); |
167 chromeos::UserManager::RegisterPrefs(local_state); | 167 chromeos::UserManager::RegisterPrefs(local_state); |
168 chromeos::ServicesCustomizationDocument::RegisterPrefs(local_state); | 168 chromeos::ServicesCustomizationDocument::RegisterPrefs(local_state); |
169 chromeos::signed_settings_cache::RegisterPrefs(local_state); | 169 chromeos::signed_settings_cache::RegisterPrefs(local_state); |
170 chromeos::WizardController::RegisterPrefs(local_state); | 170 chromeos::WizardController::RegisterPrefs(local_state); |
171 policy::AutoEnrollmentClient::RegisterPrefs(local_state); | 171 policy::AutoEnrollmentClient::RegisterPrefs(local_state); |
172 policy::DeviceStatusCollector::RegisterPrefs(local_state); | 172 policy::DeviceStatusCollector::RegisterPrefs(local_state); |
173 local_state->RegisterBooleanPref(prefs::kDisableScreenshots, false); | |
Mattias Nissler (ping if slow)
2012/07/06 15:15:52
Create static function for registration.
qfel
2012/07/06 17:00:39
Done
| |
173 #endif | 174 #endif |
174 | 175 |
175 #if defined(OS_MACOSX) | 176 #if defined(OS_MACOSX) |
176 chrome::RegisterObsoleteOSInfobarPrefs(local_state); | 177 chrome::RegisterObsoleteOSInfobarPrefs(local_state); |
177 confirm_quit::RegisterLocalState(local_state); | 178 confirm_quit::RegisterLocalState(local_state); |
178 #endif | 179 #endif |
179 } | 180 } |
180 | 181 |
181 void RegisterUserPrefs(PrefService* user_prefs) { | 182 void RegisterUserPrefs(PrefService* user_prefs) { |
182 // User prefs | 183 // User prefs |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
318 } | 319 } |
319 local_state->ClearPref(prefs::kLastPromptedGoogleURL); | 320 local_state->ClearPref(prefs::kLastPromptedGoogleURL); |
320 | 321 |
321 current_version |= GOOGLE_URL_TRACKER_PREFS; | 322 current_version |= GOOGLE_URL_TRACKER_PREFS; |
322 local_state->SetInteger(prefs::kMultipleProfilePrefMigration, | 323 local_state->SetInteger(prefs::kMultipleProfilePrefMigration, |
323 current_version); | 324 current_version); |
324 } | 325 } |
325 } | 326 } |
326 | 327 |
327 } // namespace browser | 328 } // namespace browser |
OLD | NEW |