Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(962)

Unified Diff: chrome/browser/android/ntp/ntp_snippets_bridge.cc

Issue 2599743002: Trigger the Snippets Scheduler when Resuming Activities (Closed)
Patch Set: Renamed and moved the call to the bridge. Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 771a42be637b39df085cd91554dca3b11e866385..96683ac862fda0a022d545ebb26c5d3a599376c1 100644
--- a/chrome/browser/android/ntp/ntp_snippets_bridge.cc
+++ b/chrome/browser/android/ntp/ntp_snippets_bridge.cc
@@ -396,6 +396,13 @@ void NTPSnippetsBridge::OnMoreButtonClicked(JNIEnv* env,
ntp_snippets::UserClassifier::Metric::SUGGESTIONS_USED);
}
+void NTPSnippetsBridge::OnBrowserStarted(
+ JNIEnv* env,
+ const base::android::JavaParamRef<jobject>& obj) {
+ content_suggestions_service_->remote_suggestions_scheduler()
+ ->OnBrowserStartup();
Michael van Ouwerkerk 2016/12/23 11:04:42 Rename and document this method also.
fhorschig 2017/01/03 15:04:26 Renamed to Resuming.
+}
+
NTPSnippetsBridge::~NTPSnippetsBridge() {}
void NTPSnippetsBridge::OnNewSuggestions(Category category) {

Powered by Google App Engine
This is Rietveld 408576698