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/debug/trace_event.h" | 8 #include "base/debug/trace_event.h" |
9 #include "base/prefs/pref_registry_simple.h" | 9 #include "base/prefs/pref_registry_simple.h" |
10 #include "base/prefs/pref_service.h" | 10 #include "base/prefs/pref_service.h" |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 #include "chrome/browser/renderer_host/web_cache_manager.h" | 64 #include "chrome/browser/renderer_host/web_cache_manager.h" |
65 #include "chrome/browser/search/search.h" | 65 #include "chrome/browser/search/search.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/sync_prefs.h" | 68 #include "chrome/browser/sync/sync_prefs.h" |
69 #include "chrome/browser/task_manager/task_manager.h" | 69 #include "chrome/browser/task_manager/task_manager.h" |
70 #include "chrome/browser/translate/translate_prefs.h" | 70 #include "chrome/browser/translate/translate_prefs.h" |
71 #include "chrome/browser/ui/alternate_error_tab_observer.h" | 71 #include "chrome/browser/ui/alternate_error_tab_observer.h" |
72 #include "chrome/browser/ui/app_list/app_list_service.h" | 72 #include "chrome/browser/ui/app_list/app_list_service.h" |
73 #include "chrome/browser/ui/autofill/autofill_credit_card_bubble_controller.h" | 73 #include "chrome/browser/ui/autofill/autofill_credit_card_bubble_controller.h" |
74 #include "chrome/browser/ui/autofill/autofill_dialog_controller_impl.h" | 74 #include "chrome/browser/ui/autofill/autofill_dialog_tab_manager_delegate.h" |
75 #include "chrome/browser/ui/browser_ui_prefs.h" | 75 #include "chrome/browser/ui/browser_ui_prefs.h" |
76 #include "chrome/browser/ui/network_profile_bubble.h" | 76 #include "chrome/browser/ui/network_profile_bubble.h" |
77 #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_engines/keyword_editor_controller.h" | 78 #include "chrome/browser/ui/search_engines/keyword_editor_controller.h" |
79 #include "chrome/browser/ui/startup/autolaunch_prompt.h" | 79 #include "chrome/browser/ui/startup/autolaunch_prompt.h" |
80 #include "chrome/browser/ui/startup/default_browser_prompt.h" | 80 #include "chrome/browser/ui/startup/default_browser_prompt.h" |
81 #include "chrome/browser/ui/sync/sync_promo_ui.h" | 81 #include "chrome/browser/ui/sync/sync_promo_ui.h" |
82 #include "chrome/browser/ui/tabs/pinned_tab_codec.h" | 82 #include "chrome/browser/ui/tabs/pinned_tab_codec.h" |
83 #include "chrome/browser/ui/webui/extensions/extension_settings_handler.h" | 83 #include "chrome/browser/ui/webui/extensions/extension_settings_handler.h" |
84 #include "chrome/browser/ui/webui/flags_ui.h" | 84 #include "chrome/browser/ui/webui/flags_ui.h" |
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
278 #endif | 278 #endif |
279 } | 279 } |
280 | 280 |
281 // Register prefs applicable to all profiles. | 281 // Register prefs applicable to all profiles. |
282 void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry) { | 282 void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry) { |
283 TRACE_EVENT0("browser", "chrome::RegisterUserPrefs"); | 283 TRACE_EVENT0("browser", "chrome::RegisterUserPrefs"); |
284 // User prefs. Please keep this list alphabetized. | 284 // User prefs. Please keep this list alphabetized. |
285 AlternateErrorPageTabObserver::RegisterProfilePrefs(registry); | 285 AlternateErrorPageTabObserver::RegisterProfilePrefs(registry); |
286 apps::RegisterProfilePrefs(registry); | 286 apps::RegisterProfilePrefs(registry); |
287 autofill::AutofillCreditCardBubbleController::RegisterUserPrefs(registry); | 287 autofill::AutofillCreditCardBubbleController::RegisterUserPrefs(registry); |
288 autofill::AutofillDialogControllerImpl::RegisterProfilePrefs(registry); | 288 autofill::AutofillDialogTabManagerDelegate::RegisterProfilePrefs(registry); |
289 autofill::AutofillManager::RegisterProfilePrefs(registry); | 289 autofill::AutofillManager::RegisterProfilePrefs(registry); |
290 BookmarkPromptPrefs::RegisterProfilePrefs(registry); | 290 BookmarkPromptPrefs::RegisterProfilePrefs(registry); |
291 bookmark_utils::RegisterProfilePrefs(registry); | 291 bookmark_utils::RegisterProfilePrefs(registry); |
292 browser_sync::SyncPrefs::RegisterProfilePrefs(registry); | 292 browser_sync::SyncPrefs::RegisterProfilePrefs(registry); |
293 ChromeContentBrowserClient::RegisterProfilePrefs(registry); | 293 ChromeContentBrowserClient::RegisterProfilePrefs(registry); |
294 ChromeVersionService::RegisterProfilePrefs(registry); | 294 ChromeVersionService::RegisterProfilePrefs(registry); |
295 chrome_browser_net::HttpServerPropertiesManager::RegisterProfilePrefs( | 295 chrome_browser_net::HttpServerPropertiesManager::RegisterProfilePrefs( |
296 registry); | 296 registry); |
297 chrome_browser_net::Predictor::RegisterProfilePrefs(registry); | 297 chrome_browser_net::Predictor::RegisterProfilePrefs(registry); |
298 DownloadPrefs::RegisterProfilePrefs(registry); | 298 DownloadPrefs::RegisterProfilePrefs(registry); |
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
488 } | 488 } |
489 local_state->ClearPref(prefs::kLastPromptedGoogleURL); | 489 local_state->ClearPref(prefs::kLastPromptedGoogleURL); |
490 | 490 |
491 current_version |= GOOGLE_URL_TRACKER_PREFS; | 491 current_version |= GOOGLE_URL_TRACKER_PREFS; |
492 local_state->SetInteger(prefs::kMultipleProfilePrefMigration, | 492 local_state->SetInteger(prefs::kMultipleProfilePrefMigration, |
493 current_version); | 493 current_version); |
494 } | 494 } |
495 } | 495 } |
496 | 496 |
497 } // namespace chrome | 497 } // namespace chrome |
OLD | NEW |