OLD | NEW |
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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 #include "chrome/browser/renderer_host/web_cache_manager.h" | 65 #include "chrome/browser/renderer_host/web_cache_manager.h" |
66 #include "chrome/browser/search_engines/template_url_prepopulate_data.h" | 66 #include "chrome/browser/search_engines/template_url_prepopulate_data.h" |
67 #include "chrome/browser/signin/signin_manager_factory.h" | 67 #include "chrome/browser/signin/signin_manager_factory.h" |
68 #include "chrome/browser/sync/invalidations/invalidator_storage.h" | 68 #include "chrome/browser/sync/invalidations/invalidator_storage.h" |
69 #include "chrome/browser/sync/sync_prefs.h" | 69 #include "chrome/browser/sync/sync_prefs.h" |
70 #include "chrome/browser/task_manager/task_manager.h" | 70 #include "chrome/browser/task_manager/task_manager.h" |
71 #include "chrome/browser/translate/translate_prefs.h" | 71 #include "chrome/browser/translate/translate_prefs.h" |
72 #include "chrome/browser/ui/alternate_error_tab_observer.h" | 72 #include "chrome/browser/ui/alternate_error_tab_observer.h" |
73 #include "chrome/browser/ui/app_list/app_list_service.h" | 73 #include "chrome/browser/ui/app_list/app_list_service.h" |
74 #include "chrome/browser/ui/autofill/autofill_dialog_controller_impl.h" | 74 #include "chrome/browser/ui/autofill/autofill_dialog_controller_impl.h" |
75 #include "chrome/browser/ui/browser_instant_controller.h" | |
76 #include "chrome/browser/ui/browser_ui_prefs.h" | 75 #include "chrome/browser/ui/browser_ui_prefs.h" |
77 #include "chrome/browser/ui/network_profile_bubble.h" | 76 #include "chrome/browser/ui/network_profile_bubble.h" |
78 #include "chrome/browser/ui/prefs/prefs_tab_helper.h" | 77 #include "chrome/browser/ui/prefs/prefs_tab_helper.h" |
| 78 #include "chrome/browser/ui/search/search.h" |
79 #include "chrome/browser/ui/search_engines/keyword_editor_controller.h" | 79 #include "chrome/browser/ui/search_engines/keyword_editor_controller.h" |
80 #include "chrome/browser/ui/startup/autolaunch_prompt.h" | 80 #include "chrome/browser/ui/startup/autolaunch_prompt.h" |
81 #include "chrome/browser/ui/tabs/pinned_tab_codec.h" | 81 #include "chrome/browser/ui/tabs/pinned_tab_codec.h" |
82 #include "chrome/browser/ui/webui/extensions/extension_settings_handler.h" | 82 #include "chrome/browser/ui/webui/extensions/extension_settings_handler.h" |
83 #include "chrome/browser/ui/webui/flags_ui.h" | 83 #include "chrome/browser/ui/webui/flags_ui.h" |
84 #include "chrome/browser/ui/webui/instant_ui.h" | 84 #include "chrome/browser/ui/webui/instant_ui.h" |
85 #include "chrome/browser/ui/webui/ntp/new_tab_ui.h" | 85 #include "chrome/browser/ui/webui/ntp/new_tab_ui.h" |
86 #include "chrome/browser/ui/webui/plugins_ui.h" | 86 #include "chrome/browser/ui/webui/plugins_ui.h" |
87 #include "chrome/browser/ui/webui/print_preview/sticky_settings.h" | 87 #include "chrome/browser/ui/webui/print_preview/sticky_settings.h" |
88 #include "chrome/browser/ui/webui/sync_promo/sync_promo_ui.h" | 88 #include "chrome/browser/ui/webui/sync_promo/sync_promo_ui.h" |
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
259 PrefRegistrySyncable* registry) { | 259 PrefRegistrySyncable* registry) { |
260 // TODO(joi): Get rid of the need for the PrefService parameter, and | 260 // TODO(joi): Get rid of the need for the PrefService parameter, and |
261 // do registration prior to PrefService creation. | 261 // do registration prior to PrefService creation. |
262 | 262 |
263 // User prefs. Please keep this list alphabetized. | 263 // User prefs. Please keep this list alphabetized. |
264 AlternateErrorPageTabObserver::RegisterUserPrefs(registry); | 264 AlternateErrorPageTabObserver::RegisterUserPrefs(registry); |
265 autofill::AutofillDialogControllerImpl::RegisterUserPrefs(registry); | 265 autofill::AutofillDialogControllerImpl::RegisterUserPrefs(registry); |
266 AutofillManager::RegisterUserPrefs(registry); | 266 AutofillManager::RegisterUserPrefs(registry); |
267 BookmarkPromptPrefs::RegisterUserPrefs(registry); | 267 BookmarkPromptPrefs::RegisterUserPrefs(registry); |
268 bookmark_utils::RegisterUserPrefs(registry); | 268 bookmark_utils::RegisterUserPrefs(registry); |
269 BrowserInstantController::RegisterUserPrefs(user_prefs, registry); | |
270 browser_sync::SyncPrefs::RegisterUserPrefs(registry); | 269 browser_sync::SyncPrefs::RegisterUserPrefs(registry); |
| 270 chrome::search::RegisterUserPrefs(registry); |
271 ChromeContentBrowserClient::RegisterUserPrefs(registry); | 271 ChromeContentBrowserClient::RegisterUserPrefs(registry); |
272 ChromeDownloadManagerDelegate::RegisterUserPrefs(registry); | 272 ChromeDownloadManagerDelegate::RegisterUserPrefs(registry); |
273 ChromeVersionService::RegisterUserPrefs(registry); | 273 ChromeVersionService::RegisterUserPrefs(registry); |
274 chrome_browser_net::HttpServerPropertiesManager::RegisterUserPrefs( | 274 chrome_browser_net::HttpServerPropertiesManager::RegisterUserPrefs( |
275 registry); | 275 registry); |
276 chrome_browser_net::Predictor::RegisterUserPrefs(registry); | 276 chrome_browser_net::Predictor::RegisterUserPrefs(registry); |
277 DownloadPrefs::RegisterUserPrefs(registry); | 277 DownloadPrefs::RegisterUserPrefs(registry); |
278 extensions::ComponentLoader::RegisterUserPrefs(registry); | 278 extensions::ComponentLoader::RegisterUserPrefs(registry); |
279 extensions::ExtensionPrefs::RegisterUserPrefs(registry); | 279 extensions::ExtensionPrefs::RegisterUserPrefs(registry); |
280 ExtensionWebUI::RegisterUserPrefs(registry); | 280 ExtensionWebUI::RegisterUserPrefs(registry); |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
436 } | 436 } |
437 local_state->ClearPref(prefs::kLastPromptedGoogleURL); | 437 local_state->ClearPref(prefs::kLastPromptedGoogleURL); |
438 | 438 |
439 current_version |= GOOGLE_URL_TRACKER_PREFS; | 439 current_version |= GOOGLE_URL_TRACKER_PREFS; |
440 local_state->SetInteger(prefs::kMultipleProfilePrefMigration, | 440 local_state->SetInteger(prefs::kMultipleProfilePrefMigration, |
441 current_version); | 441 current_version); |
442 } | 442 } |
443 } | 443 } |
444 | 444 |
445 } // namespace chrome | 445 } // namespace chrome |
OLD | NEW |