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

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: Edit according to Jian's comments and formatting Created 4 years, 6 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/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) {

Powered by Google App Engine
This is Rietveld 408576698