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

Unified Diff: components/ntp_snippets/remote/ntp_snippets_service.h

Issue 2395273003: [NTP Snippets] Persist remote categories in prefs (Closed)
Patch Set: tschumann review 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 side-by-side diff with in-line comments
Download patch
Index: components/ntp_snippets/remote/ntp_snippets_service.h
diff --git a/components/ntp_snippets/remote/ntp_snippets_service.h b/components/ntp_snippets/remote/ntp_snippets_service.h
index 16f038ceca83cf9918600171342d2ec62f8949a7..7d7cd6a4fbab61a5bd9454d92632b91306866f75 100644
--- a/components/ntp_snippets/remote/ntp_snippets_service.h
+++ b/components/ntp_snippets/remote/ntp_snippets_service.h
@@ -279,6 +279,9 @@ class NTPSnippetsService final : public ContentSuggestionsProvider,
// Calls UpdateCategoryStatus() for all provided categories.
void UpdateAllCategoryStatus(CategoryStatus status);
+ void RestoreCategoriesFromPrefs();
+ void StoreCategoriesToPrefs();
+
State state_;
PrefService* pref_service_;

Powered by Google App Engine
This is Rietveld 408576698