Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1361)

Side by Side Diff: chrome/browser/prefs/browser_prefs.cc

Issue 21668003: Implement newly saved card bubble for realz and update generated card bubble to (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: gyp'd Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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"
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"
79 #include "chrome/browser/ui/search_engines/keyword_editor_controller.h" 78 #include "chrome/browser/ui/search_engines/keyword_editor_controller.h"
80 #include "chrome/browser/ui/startup/autolaunch_prompt.h" 79 #include "chrome/browser/ui/startup/autolaunch_prompt.h"
81 #include "chrome/browser/ui/startup/default_browser_prompt.h" 80 #include "chrome/browser/ui/startup/default_browser_prompt.h"
82 #include "chrome/browser/ui/tabs/pinned_tab_codec.h" 81 #include "chrome/browser/ui/tabs/pinned_tab_codec.h"
83 #include "chrome/browser/ui/webui/extensions/extension_settings_handler.h" 82 #include "chrome/browser/ui/webui/extensions/extension_settings_handler.h"
84 #include "chrome/browser/ui/webui/flags_ui.h" 83 #include "chrome/browser/ui/webui/flags_ui.h"
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 #else 145 #else
147 #include "chrome/browser/extensions/default_apps.h" 146 #include "chrome/browser/extensions/default_apps.h"
148 #endif 147 #endif
149 148
150 #if defined(USE_ASH) 149 #if defined(USE_ASH)
151 #include "chrome/browser/ui/ash/chrome_launcher_prefs.h" 150 #include "chrome/browser/ui/ash/chrome_launcher_prefs.h"
152 #endif 151 #endif
153 152
154 #if defined(OS_ANDROID) 153 #if defined(OS_ANDROID)
155 #include "chrome/browser/ui/webui/ntp/android/promo_handler.h" 154 #include "chrome/browser/ui/webui/ntp/android/promo_handler.h"
155 #else
156 #include "chrome/browser/ui/autofill/generated_credit_card_bubble_controller.h"
156 #endif 157 #endif
157 158
158 #if defined(ENABLE_PLUGIN_INSTALLATION) 159 #if defined(ENABLE_PLUGIN_INSTALLATION)
159 #include "chrome/browser/plugins/plugins_resource_service.h" 160 #include "chrome/browser/plugins/plugins_resource_service.h"
160 #endif 161 #endif
161 162
162 namespace { 163 namespace {
163 164
164 enum MigratedPreferences { 165 enum MigratedPreferences {
165 NO_PREFS = 0, 166 NO_PREFS = 0,
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 confirm_quit::RegisterLocalState(registry); 281 confirm_quit::RegisterLocalState(registry);
281 #endif 282 #endif
282 } 283 }
283 284
284 // Register prefs applicable to all profiles. 285 // Register prefs applicable to all profiles.
285 void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry) { 286 void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry) {
286 TRACE_EVENT0("browser", "chrome::RegisterUserPrefs"); 287 TRACE_EVENT0("browser", "chrome::RegisterUserPrefs");
287 // User prefs. Please keep this list alphabetized. 288 // User prefs. Please keep this list alphabetized.
288 AlternateErrorPageTabObserver::RegisterProfilePrefs(registry); 289 AlternateErrorPageTabObserver::RegisterProfilePrefs(registry);
289 apps::RegisterProfilePrefs(registry); 290 apps::RegisterProfilePrefs(registry);
290 autofill::AutofillCreditCardBubbleController::RegisterUserPrefs(registry);
291 autofill::AutofillDialogControllerImpl::RegisterProfilePrefs(registry); 291 autofill::AutofillDialogControllerImpl::RegisterProfilePrefs(registry);
292 autofill::AutofillManager::RegisterProfilePrefs(registry); 292 autofill::AutofillManager::RegisterProfilePrefs(registry);
293 #if !defined(OS_ANDROID)
294 autofill::GeneratedCreditCardBubbleController::RegisterUserPrefs(registry);
295 #endif
293 BookmarkPromptPrefs::RegisterProfilePrefs(registry); 296 BookmarkPromptPrefs::RegisterProfilePrefs(registry);
294 bookmark_utils::RegisterProfilePrefs(registry); 297 bookmark_utils::RegisterProfilePrefs(registry);
295 browser_sync::SyncPrefs::RegisterProfilePrefs(registry); 298 browser_sync::SyncPrefs::RegisterProfilePrefs(registry);
296 ChromeContentBrowserClient::RegisterProfilePrefs(registry); 299 ChromeContentBrowserClient::RegisterProfilePrefs(registry);
297 ChromeVersionService::RegisterProfilePrefs(registry); 300 ChromeVersionService::RegisterProfilePrefs(registry);
298 chrome_browser_net::HttpServerPropertiesManager::RegisterProfilePrefs( 301 chrome_browser_net::HttpServerPropertiesManager::RegisterProfilePrefs(
299 registry); 302 registry);
300 chrome_browser_net::Predictor::RegisterProfilePrefs(registry); 303 chrome_browser_net::Predictor::RegisterProfilePrefs(registry);
301 DownloadPrefs::RegisterProfilePrefs(registry); 304 DownloadPrefs::RegisterProfilePrefs(registry);
302 extensions::ExtensionPrefs::RegisterProfilePrefs(registry); 305 extensions::ExtensionPrefs::RegisterProfilePrefs(registry);
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
503 } 506 }
504 local_state->ClearPref(prefs::kLastPromptedGoogleURL); 507 local_state->ClearPref(prefs::kLastPromptedGoogleURL);
505 508
506 current_version |= GOOGLE_URL_TRACKER_PREFS; 509 current_version |= GOOGLE_URL_TRACKER_PREFS;
507 local_state->SetInteger(prefs::kMultipleProfilePrefMigration, 510 local_state->SetInteger(prefs::kMultipleProfilePrefMigration,
508 current_version); 511 current_version);
509 } 512 }
510 } 513 }
511 514
512 } // namespace chrome 515 } // namespace chrome
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698