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

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

Issue 2406303003: Move enable_app_list to a buildflag. (Closed)
Patch Set: More grit defines Created 4 years, 2 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
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 <string> 7 #include <string>
8 8
9 #include "base/files/file_util.h" 9 #include "base/files/file_util.h"
10 #include "base/metrics/histogram_macros.h" 10 #include "base/metrics/histogram_macros.h"
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 #include "components/sync/base/sync_prefs.h" 100 #include "components/sync/base/sync_prefs.h"
101 #include "components/syncable_prefs/pref_service_syncable.h" 101 #include "components/syncable_prefs/pref_service_syncable.h"
102 #include "components/translate/core/browser/language_model.h" 102 #include "components/translate/core/browser/language_model.h"
103 #include "components/translate/core/browser/translate_prefs.h" 103 #include "components/translate/core/browser/translate_prefs.h"
104 #include "components/update_client/update_client.h" 104 #include "components/update_client/update_client.h"
105 #include "components/variations/service/variations_service.h" 105 #include "components/variations/service/variations_service.h"
106 #include "content/public/browser/browser_thread.h" 106 #include "content/public/browser/browser_thread.h"
107 #include "content/public/browser/render_process_host.h" 107 #include "content/public/browser/render_process_host.h"
108 #include "net/http/http_server_properties_manager.h" 108 #include "net/http/http_server_properties_manager.h"
109 109
110 #if defined(ENABLE_APP_LIST) 110 #if BUILDFLAG(ENABLE_APP_LIST)
111 #include "chrome/browser/apps/drive/drive_app_mapping.h" 111 #include "chrome/browser/apps/drive/drive_app_mapping.h"
112 #endif 112 #endif
113 113
114 #if BUILDFLAG(ENABLE_BACKGROUND) 114 #if BUILDFLAG(ENABLE_BACKGROUND)
115 #include "chrome/browser/background/background_mode_manager.h" 115 #include "chrome/browser/background/background_mode_manager.h"
116 #endif 116 #endif
117 117
118 #if defined(ENABLE_EXTENSIONS) 118 #if defined(ENABLE_EXTENSIONS)
119 #include "chrome/browser/accessibility/animation_policy_prefs.h" 119 #include "chrome/browser/accessibility/animation_policy_prefs.h"
120 #include "chrome/browser/apps/shortcut_manager.h" 120 #include "chrome/browser/apps/shortcut_manager.h"
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 #include "chrome/browser/ui/webui/chromeos/login/reset_screen_handler.h" 209 #include "chrome/browser/ui/webui/chromeos/login/reset_screen_handler.h"
210 #include "chrome/browser/ui/webui/chromeos/login/signin_screen_handler.h" 210 #include "chrome/browser/ui/webui/chromeos/login/signin_screen_handler.h"
211 #include "chromeos/audio/audio_devices_pref_handler_impl.h" 211 #include "chromeos/audio/audio_devices_pref_handler_impl.h"
212 #include "chromeos/timezone/timezone_resolver.h" 212 #include "chromeos/timezone/timezone_resolver.h"
213 #include "components/invalidation/impl/invalidator_storage.h" 213 #include "components/invalidation/impl/invalidator_storage.h"
214 #include "components/quirks/quirks_manager.h" 214 #include "components/quirks/quirks_manager.h"
215 #else 215 #else
216 #include "chrome/browser/extensions/default_apps.h" 216 #include "chrome/browser/extensions/default_apps.h"
217 #endif 217 #endif
218 218
219 #if defined(OS_CHROMEOS) && defined(ENABLE_APP_LIST) 219 #if defined(OS_CHROMEOS) && BUILDFLAG(ENABLE_APP_LIST)
220 #include "chrome/browser/ui/app_list/arc/arc_app_list_prefs.h" 220 #include "chrome/browser/ui/app_list/arc/arc_app_list_prefs.h"
221 #endif 221 #endif
222 222
223 #if defined(OS_MACOSX) 223 #if defined(OS_MACOSX)
224 #include "chrome/browser/ui/cocoa/apps/quit_with_apps_controller_mac.h" 224 #include "chrome/browser/ui/cocoa/apps/quit_with_apps_controller_mac.h"
225 #include "chrome/browser/ui/cocoa/confirm_quit.h" 225 #include "chrome/browser/ui/cocoa/confirm_quit.h"
226 #endif 226 #endif
227 227
228 #if defined(OS_WIN) 228 #if defined(OS_WIN)
229 #include "chrome/browser/apps/app_launch_for_metro_restart_win.h" 229 #include "chrome/browser/apps/app_launch_for_metro_restart_win.h"
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after
496 ProtocolHandlerRegistry::RegisterProfilePrefs(registry); 496 ProtocolHandlerRegistry::RegisterProfilePrefs(registry);
497 PushMessagingAppIdentifier::RegisterProfilePrefs(registry); 497 PushMessagingAppIdentifier::RegisterProfilePrefs(registry);
498 RegisterBrowserUserPrefs(registry); 498 RegisterBrowserUserPrefs(registry);
499 SessionStartupPref::RegisterProfilePrefs(registry); 499 SessionStartupPref::RegisterProfilePrefs(registry);
500 TemplateURLPrepopulateData::RegisterProfilePrefs(registry); 500 TemplateURLPrepopulateData::RegisterProfilePrefs(registry);
501 translate::LanguageModel::RegisterProfilePrefs(registry); 501 translate::LanguageModel::RegisterProfilePrefs(registry);
502 translate::TranslatePrefs::RegisterProfilePrefs(registry); 502 translate::TranslatePrefs::RegisterProfilePrefs(registry);
503 ZeroSuggestProvider::RegisterProfilePrefs(registry); 503 ZeroSuggestProvider::RegisterProfilePrefs(registry);
504 browsing_data::prefs::RegisterBrowserUserPrefs(registry); 504 browsing_data::prefs::RegisterBrowserUserPrefs(registry);
505 505
506 #if defined(ENABLE_APP_LIST) 506 #if BUILDFLAG(ENABLE_APP_LIST)
507 app_list::AppListPrefs::RegisterProfilePrefs(registry); 507 app_list::AppListPrefs::RegisterProfilePrefs(registry);
508 #endif 508 #endif
509 509
510 policy::URLBlacklistManager::RegisterProfilePrefs(registry); 510 policy::URLBlacklistManager::RegisterProfilePrefs(registry);
511 certificate_transparency::CTPolicyManager::RegisterPrefs(registry); 511 certificate_transparency::CTPolicyManager::RegisterPrefs(registry);
512 512
513 #if defined(ENABLE_EXTENSIONS) 513 #if defined(ENABLE_EXTENSIONS)
514 EasyUnlockService::RegisterProfilePrefs(registry); 514 EasyUnlockService::RegisterProfilePrefs(registry);
515 ExtensionWebUI::RegisterProfilePrefs(registry); 515 ExtensionWebUI::RegisterProfilePrefs(registry);
516 RegisterAnimationPolicyPrefs(registry); 516 RegisterAnimationPolicyPrefs(registry);
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
558 #if BUILDFLAG(ANDROID_JAVA_UI) 558 #if BUILDFLAG(ANDROID_JAVA_UI)
559 variations::VariationsService::RegisterProfilePrefs(registry); 559 variations::VariationsService::RegisterProfilePrefs(registry);
560 ntp_tiles::MostVisitedSites::RegisterProfilePrefs(registry); 560 ntp_tiles::MostVisitedSites::RegisterProfilePrefs(registry);
561 ntp_tiles::PopularSites::RegisterProfilePrefs(registry); 561 ntp_tiles::PopularSites::RegisterProfilePrefs(registry);
562 NewTabPagePrefs::RegisterProfilePrefs(registry); 562 NewTabPagePrefs::RegisterProfilePrefs(registry);
563 PartnerBookmarksShim::RegisterProfilePrefs(registry); 563 PartnerBookmarksShim::RegisterProfilePrefs(registry);
564 #else 564 #else
565 AppShortcutManager::RegisterProfilePrefs(registry); 565 AppShortcutManager::RegisterProfilePrefs(registry);
566 DeviceIDFetcher::RegisterProfilePrefs(registry); 566 DeviceIDFetcher::RegisterProfilePrefs(registry);
567 DevToolsWindow::RegisterProfilePrefs(registry); 567 DevToolsWindow::RegisterProfilePrefs(registry);
568 #if defined(ENABLE_APP_LIST) 568 #if BUILDFLAG(ENABLE_APP_LIST)
569 DriveAppMapping::RegisterProfilePrefs(registry); 569 DriveAppMapping::RegisterProfilePrefs(registry);
570 #endif 570 #endif
571 extensions::CommandService::RegisterProfilePrefs(registry); 571 extensions::CommandService::RegisterProfilePrefs(registry);
572 extensions::ExtensionSettingsHandler::RegisterProfilePrefs(registry); 572 extensions::ExtensionSettingsHandler::RegisterProfilePrefs(registry);
573 extensions::TabsCaptureVisibleTabFunction::RegisterProfilePrefs(registry); 573 extensions::TabsCaptureVisibleTabFunction::RegisterProfilePrefs(registry);
574 first_run::RegisterProfilePrefs(registry); 574 first_run::RegisterProfilePrefs(registry);
575 NewTabUI::RegisterProfilePrefs(registry); 575 NewTabUI::RegisterProfilePrefs(registry);
576 PepperFlashSettingsManager::RegisterProfilePrefs(registry); 576 PepperFlashSettingsManager::RegisterProfilePrefs(registry);
577 PinnedTabCodec::RegisterProfilePrefs(registry); 577 PinnedTabCodec::RegisterProfilePrefs(registry);
578 signin::RegisterProfilePrefs(registry); 578 signin::RegisterProfilePrefs(registry);
(...skipping 22 matching lines...) Expand all
601 chromeos::Preferences::RegisterProfilePrefs(registry); 601 chromeos::Preferences::RegisterProfilePrefs(registry);
602 chromeos::PrinterPrefManager::RegisterProfilePrefs(registry); 602 chromeos::PrinterPrefManager::RegisterProfilePrefs(registry);
603 chromeos::proxy_config::RegisterProfilePrefs(registry); 603 chromeos::proxy_config::RegisterProfilePrefs(registry);
604 chromeos::SAMLOfflineSigninLimiter::RegisterProfilePrefs(registry); 604 chromeos::SAMLOfflineSigninLimiter::RegisterProfilePrefs(registry);
605 chromeos::ServicesCustomizationDocument::RegisterProfilePrefs(registry); 605 chromeos::ServicesCustomizationDocument::RegisterProfilePrefs(registry);
606 chromeos::UserImageSyncObserver::RegisterProfilePrefs(registry); 606 chromeos::UserImageSyncObserver::RegisterProfilePrefs(registry);
607 extensions::EPKPChallengeUserKey::RegisterProfilePrefs(registry); 607 extensions::EPKPChallengeUserKey::RegisterProfilePrefs(registry);
608 flags_ui::PrefServiceFlagsStorage::RegisterProfilePrefs(registry); 608 flags_ui::PrefServiceFlagsStorage::RegisterProfilePrefs(registry);
609 #endif 609 #endif
610 610
611 #if defined(OS_CHROMEOS) && defined(ENABLE_APP_LIST) 611 #if defined(OS_CHROMEOS) && BUILDFLAG(ENABLE_APP_LIST)
612 ArcAppListPrefs::RegisterProfilePrefs(registry); 612 ArcAppListPrefs::RegisterProfilePrefs(registry);
613 #endif 613 #endif
614 614
615 #if defined(OS_WIN) 615 #if defined(OS_WIN)
616 component_updater::RegisterProfilePrefsForSwReporter(registry); 616 component_updater::RegisterProfilePrefsForSwReporter(registry);
617 NetworkProfileBubble::RegisterProfilePrefs(registry); 617 NetworkProfileBubble::RegisterProfilePrefs(registry);
618 #endif 618 #endif
619 619
620 #if defined(TOOLKIT_VIEWS) 620 #if defined(TOOLKIT_VIEWS)
621 RegisterBrowserViewProfilePrefs(registry); 621 RegisterBrowserViewProfilePrefs(registry);
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
775 // Added 8/2016. 775 // Added 8/2016.
776 profile_prefs->ClearPref(kStaticEncodings); 776 profile_prefs->ClearPref(kStaticEncodings);
777 profile_prefs->ClearPref(kRecentlySelectedEncoding); 777 profile_prefs->ClearPref(kRecentlySelectedEncoding);
778 778
779 // Added 9/2016. 779 // Added 9/2016.
780 profile_prefs->ClearPref(kWebKitUsesUniversalDetector); 780 profile_prefs->ClearPref(kWebKitUsesUniversalDetector);
781 profile_prefs->ClearPref(kWebKitAllowDisplayingInsecureContent); 781 profile_prefs->ClearPref(kWebKitAllowDisplayingInsecureContent);
782 } 782 }
783 783
784 } // namespace chrome 784 } // namespace chrome
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698