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

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

Issue 2162533002: Adding a request counter to the snippets fetcher. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@traffic-monitor
Patch Set: Bernhard's comments Created 4 years, 5 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
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 373de14c8c375514d5a2045b5272095207e5892c..a03aaf18ec54358c45f4990605f056c380f7a3da 100644
--- a/chrome/browser/android/ntp/ntp_snippets_bridge.cc
+++ b/chrome/browser/android/ntp/ntp_snippets_bridge.cc
@@ -53,9 +53,11 @@ static jlong Init(JNIEnv* env,
}
static void FetchSnippets(JNIEnv* env,
- const JavaParamRef<jclass>& caller) {
+ const JavaParamRef<jclass>& caller,
+ jboolean j_force_request) {
Profile* profile = ProfileManager::GetLastUsedProfile();
- NTPSnippetsServiceFactory::GetForProfile(profile)->FetchSnippets();
+ NTPSnippetsServiceFactory::GetForProfile(profile)->FetchSnippets(
+ j_force_request);
}
// Reschedules the fetching of snippets. Used to support different fetching

Powered by Google App Engine
This is Rietveld 408576698