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

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

Issue 2794313002: [Remote suggestions] Prioritize wifi for soft fetches. (Closed)
Patch Set: Fix an error in rebase Created 3 years, 8 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_launcher.h ('k') | components/ntp_snippets/pref_names.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/ntp/ntp_snippets_launcher.cc
diff --git a/chrome/browser/android/ntp/ntp_snippets_launcher.cc b/chrome/browser/android/ntp/ntp_snippets_launcher.cc
index 819e569e04ebfab2cbb5683e4603c83e71bd9ac2..b247680058840d64886fcede7467e8a2fefdf793 100644
--- a/chrome/browser/android/ntp/ntp_snippets_launcher.cc
+++ b/chrome/browser/android/ntp/ntp_snippets_launcher.cc
@@ -39,6 +39,13 @@ bool NTPSnippetsLauncher::Unschedule() {
return Java_SnippetsLauncher_unschedule(env, java_launcher_);
}
+bool NTPSnippetsLauncher::IsOnUnmeteredConnection() {
+ DCHECK_CURRENTLY_ON(BrowserThread::UI);
+
+ JNIEnv* env = base::android::AttachCurrentThread();
+ return Java_SnippetsLauncher_isOnUnmeteredConnection(env, java_launcher_);
+}
+
NTPSnippetsLauncher::NTPSnippetsLauncher() {
DCHECK_CURRENTLY_ON(BrowserThread::UI);
« no previous file with comments | « chrome/browser/android/ntp/ntp_snippets_launcher.h ('k') | components/ntp_snippets/pref_names.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698