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

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

Issue 2592053004: Call the Scheduler when opening the NTP. (Closed)
Patch Set: 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 e0579c762c279465aaedfa32acd8a3f0b52b74a9..8b3275313aee33bd037d336902da4eed162daf0b 100644
--- a/chrome/browser/android/ntp/ntp_snippets_bridge.cc
+++ b/chrome/browser/android/ntp/ntp_snippets_bridge.cc
@@ -413,6 +413,10 @@ void NTPSnippetsBridge::OnMoreButtonClicked(JNIEnv* env,
ntp_snippets::UserClassifier::Metric::SUGGESTIONS_USED);
}
+void NTPSnippetsBridge::OnNTPOpened(JNIEnv* env) {
+ content_suggestions_service_->remote_suggestions_scheduler()-> OnNTPOpened();
Michael van Ouwerkerk 2016/12/22 11:38:33 There seems to be a space in "-> OnNTPOpened"
fhorschig 2016/12/22 12:26:50 Done.
+}
+
NTPSnippetsBridge::~NTPSnippetsBridge() {}
void NTPSnippetsBridge::OnNewSuggestions(Category category) {

Powered by Google App Engine
This is Rietveld 408576698