| 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/signin/signin_promo.h" | 68 #include "chrome/browser/signin/signin_promo.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_credit_card_bubble_controller.h" | |
| 75 #include "chrome/browser/ui/autofill/autofill_dialog_controller_impl.h" | 74 #include "chrome/browser/ui/autofill/autofill_dialog_controller_impl.h" |
| 75 #if !defined(OS_ANDROID) |
| 76 #include "chrome/browser/ui/autofill/generated_credit_card_bubble_controller.h" |
| 77 #endif |
| 76 #include "chrome/browser/ui/browser_ui_prefs.h" | 78 #include "chrome/browser/ui/browser_ui_prefs.h" |
| 77 #include "chrome/browser/ui/network_profile_bubble.h" | 79 #include "chrome/browser/ui/network_profile_bubble.h" |
| 78 #include "chrome/browser/ui/prefs/prefs_tab_helper.h" | 80 #include "chrome/browser/ui/prefs/prefs_tab_helper.h" |
| 79 #include "chrome/browser/ui/search_engines/keyword_editor_controller.h" | 81 #include "chrome/browser/ui/search_engines/keyword_editor_controller.h" |
| 80 #include "chrome/browser/ui/startup/autolaunch_prompt.h" | 82 #include "chrome/browser/ui/startup/autolaunch_prompt.h" |
| 81 #include "chrome/browser/ui/startup/default_browser_prompt.h" | 83 #include "chrome/browser/ui/startup/default_browser_prompt.h" |
| 82 #include "chrome/browser/ui/tabs/pinned_tab_codec.h" | 84 #include "chrome/browser/ui/tabs/pinned_tab_codec.h" |
| 83 #include "chrome/browser/ui/webui/extensions/extension_settings_handler.h" | 85 #include "chrome/browser/ui/webui/extensions/extension_settings_handler.h" |
| 84 #include "chrome/browser/ui/webui/flags_ui.h" | 86 #include "chrome/browser/ui/webui/flags_ui.h" |
| 85 #include "chrome/browser/ui/webui/instant_ui.h" | 87 #include "chrome/browser/ui/webui/instant_ui.h" |
| (...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 274 confirm_quit::RegisterLocalState(registry); | 276 confirm_quit::RegisterLocalState(registry); |
| 275 #endif | 277 #endif |
| 276 } | 278 } |
| 277 | 279 |
| 278 // Register prefs applicable to all profiles. | 280 // Register prefs applicable to all profiles. |
| 279 void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry) { | 281 void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry) { |
| 280 TRACE_EVENT0("browser", "chrome::RegisterUserPrefs"); | 282 TRACE_EVENT0("browser", "chrome::RegisterUserPrefs"); |
| 281 // User prefs. Please keep this list alphabetized. | 283 // User prefs. Please keep this list alphabetized. |
| 282 AlternateErrorPageTabObserver::RegisterProfilePrefs(registry); | 284 AlternateErrorPageTabObserver::RegisterProfilePrefs(registry); |
| 283 apps::RegisterProfilePrefs(registry); | 285 apps::RegisterProfilePrefs(registry); |
| 284 autofill::AutofillCreditCardBubbleController::RegisterUserPrefs(registry); | |
| 285 autofill::AutofillDialogControllerImpl::RegisterProfilePrefs(registry); | 286 autofill::AutofillDialogControllerImpl::RegisterProfilePrefs(registry); |
| 286 autofill::AutofillManager::RegisterProfilePrefs(registry); | 287 autofill::AutofillManager::RegisterProfilePrefs(registry); |
| 288 #if !defined(OS_ANDROID) |
| 289 autofill::GeneratedCreditCardBubbleController::RegisterUserPrefs(registry); |
| 290 #endif |
| 287 BookmarkPromptPrefs::RegisterProfilePrefs(registry); | 291 BookmarkPromptPrefs::RegisterProfilePrefs(registry); |
| 288 bookmark_utils::RegisterProfilePrefs(registry); | 292 bookmark_utils::RegisterProfilePrefs(registry); |
| 289 browser_sync::SyncPrefs::RegisterProfilePrefs(registry); | 293 browser_sync::SyncPrefs::RegisterProfilePrefs(registry); |
| 290 ChromeContentBrowserClient::RegisterProfilePrefs(registry); | 294 ChromeContentBrowserClient::RegisterProfilePrefs(registry); |
| 291 ChromeVersionService::RegisterProfilePrefs(registry); | 295 ChromeVersionService::RegisterProfilePrefs(registry); |
| 292 chrome_browser_net::HttpServerPropertiesManager::RegisterProfilePrefs( | 296 chrome_browser_net::HttpServerPropertiesManager::RegisterProfilePrefs( |
| 293 registry); | 297 registry); |
| 294 chrome_browser_net::Predictor::RegisterProfilePrefs(registry); | 298 chrome_browser_net::Predictor::RegisterProfilePrefs(registry); |
| 295 DownloadPrefs::RegisterProfilePrefs(registry); | 299 DownloadPrefs::RegisterProfilePrefs(registry); |
| 296 extensions::ExtensionPrefs::RegisterProfilePrefs(registry); | 300 extensions::ExtensionPrefs::RegisterProfilePrefs(registry); |
| (...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 485 } | 489 } |
| 486 local_state->ClearPref(prefs::kLastPromptedGoogleURL); | 490 local_state->ClearPref(prefs::kLastPromptedGoogleURL); |
| 487 | 491 |
| 488 current_version |= GOOGLE_URL_TRACKER_PREFS; | 492 current_version |= GOOGLE_URL_TRACKER_PREFS; |
| 489 local_state->SetInteger(prefs::kMultipleProfilePrefMigration, | 493 local_state->SetInteger(prefs::kMultipleProfilePrefMigration, |
| 490 current_version); | 494 current_version); |
| 491 } | 495 } |
| 492 } | 496 } |
| 493 | 497 |
| 494 } // namespace chrome | 498 } // namespace chrome |
| OLD | NEW |