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

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: 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);
Marc Treib 2016/07/22 11:44:42 Hm, this almost seems so specific that callers mig
Philipp Keck 2016/07/22 11:50:42 Is..StatusNonError Is..StatusNotErroneous Alterna
Marc Treib 2016/07/22 12:05:33 I'd like to avoid negated functions like that, the
Philipp Keck 2016/07/22 12:12:17 Exactly. And if those were A, B and C, at least I
Marc Treib 2016/07/22 12:23:34 Eh, depends on the context... if we just want to c
+
} // namespace ntp_snippets
#endif // COMPONENTS_NTP_SNIPPETS_CONTENT_SUGGESTIONS_CATEGORY_STATUS_H_

Powered by Google App Engine
This is Rietveld 408576698