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_ |