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

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

Issue 2406573002: 📰 Persist category dismissals (Closed)
Patch Set: fix nits 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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 #include "components/autofill/core/browser/autofill_manager.h" 71 #include "components/autofill/core/browser/autofill_manager.h"
72 #include "components/browsing_data/core/pref_names.h" 72 #include "components/browsing_data/core/pref_names.h"
73 #include "components/certificate_transparency/ct_policy_manager.h" 73 #include "components/certificate_transparency/ct_policy_manager.h"
74 #include "components/content_settings/core/browser/host_content_settings_map.h" 74 #include "components/content_settings/core/browser/host_content_settings_map.h"
75 #include "components/dom_distiller/core/distilled_page_prefs.h" 75 #include "components/dom_distiller/core/distilled_page_prefs.h"
76 #include "components/flags_ui/pref_service_flags_storage.h" 76 #include "components/flags_ui/pref_service_flags_storage.h"
77 #include "components/gcm_driver/gcm_channel_status_syncer.h" 77 #include "components/gcm_driver/gcm_channel_status_syncer.h"
78 #include "components/metrics/metrics_service.h" 78 #include "components/metrics/metrics_service.h"
79 #include "components/network_time/network_time_tracker.h" 79 #include "components/network_time/network_time_tracker.h"
80 #include "components/ntp_snippets/bookmarks/bookmark_suggestions_provider.h" 80 #include "components/ntp_snippets/bookmarks/bookmark_suggestions_provider.h"
81 #include "components/ntp_snippets/content_suggestions_service.h"
81 #include "components/ntp_snippets/remote/ntp_snippets_service.h" 82 #include "components/ntp_snippets/remote/ntp_snippets_service.h"
82 #include "components/ntp_snippets/remote/request_throttler.h" 83 #include "components/ntp_snippets/remote/request_throttler.h"
83 #include "components/ntp_snippets/sessions/foreign_sessions_suggestions_provider .h" 84 #include "components/ntp_snippets/sessions/foreign_sessions_suggestions_provider .h"
84 #include "components/ntp_snippets/user_classifier.h" 85 #include "components/ntp_snippets/user_classifier.h"
85 #include "components/omnibox/browser/zero_suggest_provider.h" 86 #include "components/omnibox/browser/zero_suggest_provider.h"
86 #include "components/password_manager/core/browser/password_bubble_experiment.h" 87 #include "components/password_manager/core/browser/password_bubble_experiment.h"
87 #include "components/password_manager/core/browser/password_manager.h" 88 #include "components/password_manager/core/browser/password_manager.h"
88 #include "components/policy/core/browser/browser_policy_connector.h" 89 #include "components/policy/core/browser/browser_policy_connector.h"
89 #include "components/policy/core/browser/url_blacklist_manager.h" 90 #include "components/policy/core/browser/url_blacklist_manager.h"
90 #include "components/policy/core/common/policy_statistics_collector.h" 91 #include "components/policy/core/common/policy_statistics_collector.h"
(...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after
478 IncognitoModePrefs::RegisterProfilePrefs(registry); 479 IncognitoModePrefs::RegisterProfilePrefs(registry);
479 InstantUI::RegisterProfilePrefs(registry); 480 InstantUI::RegisterProfilePrefs(registry);
480 NavigationCorrectionTabObserver::RegisterProfilePrefs(registry); 481 NavigationCorrectionTabObserver::RegisterProfilePrefs(registry);
481 MediaCaptureDevicesDispatcher::RegisterProfilePrefs(registry); 482 MediaCaptureDevicesDispatcher::RegisterProfilePrefs(registry);
482 MediaDeviceIDSalt::RegisterProfilePrefs(registry); 483 MediaDeviceIDSalt::RegisterProfilePrefs(registry);
483 MediaStreamDevicesController::RegisterProfilePrefs(registry); 484 MediaStreamDevicesController::RegisterProfilePrefs(registry);
484 ntp_snippets::BookmarkSuggestionsProvider::RegisterProfilePrefs(registry); 485 ntp_snippets::BookmarkSuggestionsProvider::RegisterProfilePrefs(registry);
485 ntp_snippets::ForeignSessionsSuggestionsProvider::RegisterProfilePrefs( 486 ntp_snippets::ForeignSessionsSuggestionsProvider::RegisterProfilePrefs(
486 registry); 487 registry);
487 ntp_snippets::NTPSnippetsService::RegisterProfilePrefs(registry); 488 ntp_snippets::NTPSnippetsService::RegisterProfilePrefs(registry);
489 ntp_snippets::ContentSuggestionsService::RegisterProfilePrefs(registry);
488 ntp_snippets::RequestThrottler::RegisterProfilePrefs(registry); 490 ntp_snippets::RequestThrottler::RegisterProfilePrefs(registry);
489 ntp_snippets::UserClassifier::RegisterProfilePrefs(registry); 491 ntp_snippets::UserClassifier::RegisterProfilePrefs(registry);
490 password_bubble_experiment::RegisterPrefs(registry); 492 password_bubble_experiment::RegisterPrefs(registry);
491 password_manager::PasswordManager::RegisterProfilePrefs(registry); 493 password_manager::PasswordManager::RegisterProfilePrefs(registry);
492 PrefProxyConfigTrackerImpl::RegisterProfilePrefs(registry); 494 PrefProxyConfigTrackerImpl::RegisterProfilePrefs(registry);
493 PrefsTabHelper::RegisterProfilePrefs(registry); 495 PrefsTabHelper::RegisterProfilePrefs(registry);
494 Profile::RegisterProfilePrefs(registry); 496 Profile::RegisterProfilePrefs(registry);
495 ProfileImpl::RegisterProfilePrefs(registry); 497 ProfileImpl::RegisterProfilePrefs(registry);
496 ProtocolHandlerRegistry::RegisterProfilePrefs(registry); 498 ProtocolHandlerRegistry::RegisterProfilePrefs(registry);
497 PushMessagingAppIdentifier::RegisterProfilePrefs(registry); 499 PushMessagingAppIdentifier::RegisterProfilePrefs(registry);
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after
775 // Added 8/2016. 777 // Added 8/2016.
776 profile_prefs->ClearPref(kStaticEncodings); 778 profile_prefs->ClearPref(kStaticEncodings);
777 profile_prefs->ClearPref(kRecentlySelectedEncoding); 779 profile_prefs->ClearPref(kRecentlySelectedEncoding);
778 780
779 // Added 9/2016. 781 // Added 9/2016.
780 profile_prefs->ClearPref(kWebKitUsesUniversalDetector); 782 profile_prefs->ClearPref(kWebKitUsesUniversalDetector);
781 profile_prefs->ClearPref(kWebKitAllowDisplayingInsecureContent); 783 profile_prefs->ClearPref(kWebKitAllowDisplayingInsecureContent);
782 } 784 }
783 785
784 } // namespace chrome 786 } // namespace chrome
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698