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

Unified Diff: chrome/browser/android/offline_pages/offline_page_bridge.cc

Issue 2068393002: Flag for Offline Page Sharing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Resolve merge conflict 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
« no previous file with comments | « chrome/browser/android/chrome_feature_list.cc ('k') | components/offline_pages/offline_page_feature.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/offline_pages/offline_page_bridge.cc
diff --git a/chrome/browser/android/offline_pages/offline_page_bridge.cc b/chrome/browser/android/offline_pages/offline_page_bridge.cc
index 66d4416e2e2feb425c2c42b29c2498112e869f8b..c6b912f21be6cc00f4d2e10fc6bcca8fbc30a8cf 100644
--- a/chrome/browser/android/offline_pages/offline_page_bridge.cc
+++ b/chrome/browser/android/offline_pages/offline_page_bridge.cc
@@ -146,6 +146,11 @@ static jboolean IsBackgroundLoadingEnabled(JNIEnv* env,
return offline_pages::IsOfflinePagesBackgroundLoadingEnabled();
}
+static jboolean IsPageSharingEnabled(JNIEnv* env,
+ const JavaParamRef<jclass>& clazz) {
+ return offline_pages::IsOfflinePagesSharingEnabled();
+}
+
static jboolean CanSavePage(JNIEnv* env,
const JavaParamRef<jclass>& clazz,
const JavaParamRef<jstring>& j_url) {
« no previous file with comments | « chrome/browser/android/chrome_feature_list.cc ('k') | components/offline_pages/offline_page_feature.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698