Chromium Code Reviews| Index: chrome/browser/android/ntp/ntp_snippets_bridge.h |
| diff --git a/chrome/browser/android/ntp/ntp_snippets_bridge.h b/chrome/browser/android/ntp/ntp_snippets_bridge.h |
| index b2643b292a218bb90cfc903f5f91ed5681d3b25d..326f54278d4316502a0aff28ec810f7b1b753a89 100644 |
| --- a/chrome/browser/android/ntp/ntp_snippets_bridge.h |
| +++ b/chrome/browser/android/ntp/ntp_snippets_bridge.h |
| @@ -46,6 +46,16 @@ class NTPSnippetsBridge : public ntp_snippets::NTPSnippetsServiceObserver { |
| const base::android::JavaParamRef<jobject>& callback, |
| const base::android::JavaParamRef<jstring>& jurl); |
| + // Returns a reason why the snippet service is disabled, or 0 if it isn't. |
| + // Possible return values: |
| + // 0 - NONE |
| + // 1 - EXPLICITLY_DISABLED, |
| + // 2 - HISTORY_SYNC_DISABLED, |
| + // 3 - HISTORY_SYNC_STATE_UNKNOWN |
|
Bernhard Bauer
2016/06/14 12:10:40
I think it's fine to just refer to the definition
dgn
2016/06/15 16:46:29
Done.
|
| + // See NTPSnippetsService::DisabledReason for more info. |
| + int GetDisabledReason(JNIEnv* env, |
| + const base::android::JavaParamRef<jobject>& obj); |
| + |
| static bool Register(JNIEnv* env); |
| private: |