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

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

Issue 2592053004: Call the Scheduler when opening the NTP. (Closed)
Patch Set: CamelCase'd initilialism. Created 3 years, 12 months 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
« no previous file with comments | « chrome/browser/android/ntp/ntp_snippets_bridge.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..939435eba8b2a60d840dfae30e1cad96a0af49e6 100644
--- a/chrome/browser/android/ntp/ntp_snippets_bridge.cc
+++ b/chrome/browser/android/ntp/ntp_snippets_bridge.cc
@@ -396,6 +396,12 @@ void NTPSnippetsBridge::OnMoreButtonClicked(JNIEnv* env,
ntp_snippets::UserClassifier::Metric::SUGGESTIONS_USED);
}
+void NTPSnippetsBridge::OnNTPInitialized(
+ JNIEnv* env,
+ const base::android::JavaParamRef<jobject>& obj) {
+ content_suggestions_service_->remote_suggestions_scheduler()->OnNTPOpened();
+}
+
NTPSnippetsBridge::~NTPSnippetsBridge() {}
void NTPSnippetsBridge::OnNewSuggestions(Category category) {
« no previous file with comments | « chrome/browser/android/ntp/ntp_snippets_bridge.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698