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

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: 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..b22ce7fde0c2645bf11ca4d098c99ce5231ac8fb 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) {
fgorski 2016/06/15 22:54:28 nit: alignment, please run git cl format
Vivian 2016/06/16 00:47:27 Done.
+ 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