Chromium Code Reviews| 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 d3b5ba474baa18b8f345a80c890ea9ef466869d0..cfc095a06c158d47f988cec97c062ab0bc0506ee 100644 |
| --- a/components/ntp_snippets/content_suggestions_category_status.h |
| +++ b/components/ntp_snippets/content_suggestions_category_status.h |
| @@ -11,6 +11,10 @@ namespace ntp_snippets { |
| // On Android builds, a Java counterpart will be generated for this enum. |
| // GENERATED_JAVA_ENUM_PACKAGE: org.chromium.chrome.browser.ntp.snippets |
| enum class ContentSuggestionsCategoryStatus { |
| + // The provider is still loading and it is not yet determined whether content |
| + // suggestions will be available or not. |
| + LOADING, |
|
Marc Treib
2016/07/11 10:12:04
Should this be INITIALIZING now?
Philipp Keck
2016/07/11 10:30:56
Done.
|
| + |
| // Content suggestions are available (though the list of available suggestions |
| // may be empty simply because there are no reasonable suggestions to be made |
| // at the moment). |
| @@ -36,9 +40,10 @@ enum class ContentSuggestionsCategoryStatus { |
| PASSPHRASE_ENCRYPTION_ENABLED, |
| // Content suggestions are not available because history sync is disabled. |
| HISTORY_SYNC_DISABLED, |
| - // Content suggestions are not available because the history sync service is |
| - // not yet completely initialized and its status is unknown. |
| - HISTORY_SYNC_STATE_UNKNOWN |
| + |
| + // Content suggestions are not available because an error occured when loading |
| + // or updating them. |
| + ERROR |
| }; |
| // Determines whether the given status is one of the AVAILABLE statuses. |