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

Unified Diff: components/ntp_snippets/ntp_snippets_service.cc

Issue 2130363002: [NTP Snippets] Remove deprecated prefs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/ntp_snippets/ntp_snippets_service.h ('k') | components/ntp_snippets/pref_names.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/ntp_snippets/ntp_snippets_service.cc
diff --git a/components/ntp_snippets/ntp_snippets_service.cc b/components/ntp_snippets/ntp_snippets_service.cc
index 4b18a58f6469486d06d8de08277f7ab909edd59d..51efc2a634d7c014f6fb5099c96fb6b8c51f189a 100644
--- a/components/ntp_snippets/ntp_snippets_service.cc
+++ b/components/ntp_snippets/ntp_snippets_service.cc
@@ -204,9 +204,6 @@ NTPSnippetsService::NTPSnippetsService(
database_(std::move(database)),
snippets_status_service_(std::move(status_service)),
fetch_after_load_(false) {
- // TODO(dgn) should be removed after branch point (https://crbug.com/617585).
- ClearDeprecatedPrefs();
-
if (!enabled || database_->IsErrorState()) {
// Don't even bother loading the database.
EnterState(State::SHUT_DOWN);
@@ -228,8 +225,6 @@ NTPSnippetsService::~NTPSnippetsService() {
// static
void NTPSnippetsService::RegisterProfilePrefs(PrefRegistrySimple* registry) {
- registry->RegisterListPref(prefs::kDeprecatedSnippets);
- registry->RegisterListPref(prefs::kDeprecatedDiscardedSnippets);
registry->RegisterListPref(prefs::kSnippetHosts);
}
@@ -762,9 +757,4 @@ void NTPSnippetsService::EnterState(State state) {
}
}
-void NTPSnippetsService::ClearDeprecatedPrefs() {
- pref_service_->ClearPref(prefs::kDeprecatedSnippets);
- pref_service_->ClearPref(prefs::kDeprecatedDiscardedSnippets);
-}
-
} // namespace ntp_snippets
« no previous file with comments | « components/ntp_snippets/ntp_snippets_service.h ('k') | components/ntp_snippets/pref_names.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698