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

Unified Diff: components/ntp_snippets/content_suggestions_category_status.h

Issue 2158883002: Change NTPSnippetsBridge to read from ContentSuggestionsService (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@offlinepagesprovider
Patch Set: Marc's comments; Rebase 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
Index: components/ntp_snippets/content_suggestions_category_status.h
diff --git a/components/ntp_snippets/content_suggestions_category_status.h b/components/ntp_snippets/content_suggestions_category_status.h
index 16b65af028bac7483e0e0bba18283b115bcffaa2..83b5fa2c6d85df5bbfcadb9393b92eba3e5c66f2 100644
--- a/components/ntp_snippets/content_suggestions_category_status.h
+++ b/components/ntp_snippets/content_suggestions_category_status.h
@@ -50,6 +50,12 @@ enum class ContentSuggestionsCategoryStatus {
bool IsContentSuggestionsCategoryStatusAvailable(
ContentSuggestionsCategoryStatus status);
+// Determines whether the given status is INITIALIZING or one of the AVAILABLE
+// statuses. All of these statuses have in common that there is or will soon be
+// content.
+bool IsContentSuggestionsCategoryStatusInitOrAvailable(
+ ContentSuggestionsCategoryStatus status);
+
} // namespace ntp_snippets
#endif // COMPONENTS_NTP_SNIPPETS_CONTENT_SUGGESTIONS_CATEGORY_STATUS_H_
« no previous file with comments | « components/ntp_snippets/content_suggestion.h ('k') | components/ntp_snippets/content_suggestions_category_status.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698