| Index: chrome/browser/android/ntp/ntp_snippets_bridge.cc
|
| diff --git a/chrome/browser/android/ntp/ntp_snippets_bridge.cc b/chrome/browser/android/ntp/ntp_snippets_bridge.cc
|
| index 9e7a1717a423045b086f85130b03b627df9030ba..aa813a514522abfc63eae9611d3c0774e605bc54 100644
|
| --- a/chrome/browser/android/ntp/ntp_snippets_bridge.cc
|
| +++ b/chrome/browser/android/ntp/ntp_snippets_bridge.cc
|
| @@ -168,6 +168,13 @@ void NTPSnippetsBridge::NTPSnippetsServiceShutdown() {
|
| snippet_service_observer_.Remove(ntp_snippets_service_);
|
| }
|
|
|
| +void NTPSnippetsBridge::NTPSnippetsServiceCleared() {
|
| + // The user signed out or disabled sync. Since snippets rely on those, we
|
| + // clear them to be consistent with the initially signed out state.
|
| + JNIEnv* env = base::android::AttachCurrentThread();
|
| + Java_SnippetsBridge_onSnippetsCleared(env, observer_.obj());
|
| +}
|
| +
|
| void NTPSnippetsBridge::OnImageFetched(ScopedJavaGlobalRef<jobject> callback,
|
| const std::string& snippet_id,
|
| const SkBitmap* bitmap) {
|
|
|