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

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

Issue 2422633002: [NTP Snippets] Properly restore the status of restored sections (Closed)
Patch Set: 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 7d7cd6a4fbab61a5bd9454d92632b91306866f75..af9c017bafbe1f0903c0e174b8afc768348eedfa 100644
--- a/components/ntp_snippets/remote/ntp_snippets_service.h
+++ b/components/ntp_snippets/remote/ntp_snippets_service.h
@@ -130,6 +130,7 @@ class NTPSnippetsService final : public ContentSuggestionsProvider,
static int GetMaxSnippetCountForTesting();
// Available snippets, only for unit tests.
+ // TODO(treib): Get rid of this. Tests should use a fake observer instead.
const NTPSnippet::PtrVector& GetSnippetsForTesting(Category category) const {
return categories_.find(category)->second.snippets;
}

Powered by Google App Engine
This is Rietveld 408576698