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 939435eba8b2a60d840dfae30e1cad96a0af49e6..3696ff0fdef49ec77b90a35a95131bbeaae036c3 100644 |
--- a/chrome/browser/android/ntp/ntp_snippets_bridge.cc |
+++ b/chrome/browser/android/ntp/ntp_snippets_bridge.cc |
@@ -402,6 +402,20 @@ void NTPSnippetsBridge::OnNTPInitialized( |
content_suggestions_service_->remote_suggestions_scheduler()->OnNTPOpened(); |
} |
+void NTPSnippetsBridge::OnColdStart( |
+ JNIEnv* env, |
+ const base::android::JavaParamRef<jobject>& obj) { |
+ content_suggestions_service_->remote_suggestions_scheduler() |
+ ->OnBrowserColdStart(); |
+} |
+ |
+void NTPSnippetsBridge::OnWarmStartedActivityResumed( |
+ JNIEnv* env, |
+ const base::android::JavaParamRef<jobject>& obj) { |
+ content_suggestions_service_->remote_suggestions_scheduler() |
+ ->OnBrowserForegrounded(); |
+} |
+ |
NTPSnippetsBridge::~NTPSnippetsBridge() {} |
void NTPSnippetsBridge::OnNewSuggestions(Category category) { |