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

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: . 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"
75 #if !defined(OS_ANDROID)
76 #include "chrome/browser/ui/autofill/generated_credit_card_bubble_controller.h"
Lei Zhang 2013/08/09 04:51:57 Do this down near line 157 instead.
Dan Beam 2013/08/09 18:56:54 Done.
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 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 confirm_quit::RegisterLocalState(registry); 282 confirm_quit::RegisterLocalState(registry);
281 #endif 283 #endif
282 } 284 }
283 285
284 // Register prefs applicable to all profiles. 286 // Register prefs applicable to all profiles.
285 void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry) { 287 void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry) {
286 TRACE_EVENT0("browser", "chrome::RegisterUserPrefs"); 288 TRACE_EVENT0("browser", "chrome::RegisterUserPrefs");
287 // User prefs. Please keep this list alphabetized. 289 // User prefs. Please keep this list alphabetized.
288 AlternateErrorPageTabObserver::RegisterProfilePrefs(registry); 290 AlternateErrorPageTabObserver::RegisterProfilePrefs(registry);
289 apps::RegisterProfilePrefs(registry); 291 apps::RegisterProfilePrefs(registry);
290 autofill::AutofillCreditCardBubbleController::RegisterUserPrefs(registry);
291 autofill::AutofillDialogControllerImpl::RegisterProfilePrefs(registry); 292 autofill::AutofillDialogControllerImpl::RegisterProfilePrefs(registry);
292 autofill::AutofillManager::RegisterProfilePrefs(registry); 293 autofill::AutofillManager::RegisterProfilePrefs(registry);
294 #if !defined(OS_ANDROID)
295 autofill::GeneratedCreditCardBubbleController::RegisterUserPrefs(registry);
296 #endif
293 BookmarkPromptPrefs::RegisterProfilePrefs(registry); 297 BookmarkPromptPrefs::RegisterProfilePrefs(registry);
294 bookmark_utils::RegisterProfilePrefs(registry); 298 bookmark_utils::RegisterProfilePrefs(registry);
295 browser_sync::SyncPrefs::RegisterProfilePrefs(registry); 299 browser_sync::SyncPrefs::RegisterProfilePrefs(registry);
296 ChromeContentBrowserClient::RegisterProfilePrefs(registry); 300 ChromeContentBrowserClient::RegisterProfilePrefs(registry);
297 ChromeVersionService::RegisterProfilePrefs(registry); 301 ChromeVersionService::RegisterProfilePrefs(registry);
298 chrome_browser_net::HttpServerPropertiesManager::RegisterProfilePrefs( 302 chrome_browser_net::HttpServerPropertiesManager::RegisterProfilePrefs(
299 registry); 303 registry);
300 chrome_browser_net::Predictor::RegisterProfilePrefs(registry); 304 chrome_browser_net::Predictor::RegisterProfilePrefs(registry);
301 DownloadPrefs::RegisterProfilePrefs(registry); 305 DownloadPrefs::RegisterProfilePrefs(registry);
302 extensions::ExtensionPrefs::RegisterProfilePrefs(registry); 306 extensions::ExtensionPrefs::RegisterProfilePrefs(registry);
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
503 } 507 }
504 local_state->ClearPref(prefs::kLastPromptedGoogleURL); 508 local_state->ClearPref(prefs::kLastPromptedGoogleURL);
505 509
506 current_version |= GOOGLE_URL_TRACKER_PREFS; 510 current_version |= GOOGLE_URL_TRACKER_PREFS;
507 local_state->SetInteger(prefs::kMultipleProfilePrefMigration, 511 local_state->SetInteger(prefs::kMultipleProfilePrefMigration,
508 current_version); 512 current_version);
509 } 513 }
510 } 514 }
511 515
512 } // namespace chrome 516 } // namespace chrome
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698