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

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

Issue 1899433002: Update flags used by offline pages and bookmarks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix test Created 4 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
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 a851a23e0b282255dc17c9e9655d60941f725913..8959a8c97d6522f4566f69da7444498e72f648f2 100644
--- a/chrome/browser/android/offline_pages/offline_page_bridge.cc
+++ b/chrome/browser/android/offline_pages/offline_page_bridge.cc
@@ -89,8 +89,19 @@ void DeletePageCallback(const ScopedJavaGlobalRef<jobject>& j_callback_obj,
} // namespace
-static jint GetFeatureMode(JNIEnv* env, const JavaParamRef<jclass>& clazz) {
- return static_cast<jint>(offline_pages::GetOfflinePageFeatureMode());
+static jboolean IsOfflinePagesEnabled(JNIEnv* env,
+ const JavaParamRef<jclass>& clazz) {
+ return offline_pages::IsOfflinePagesEnabled();
+}
+
+static jboolean IsOfflineBookmarksEnabled(JNIEnv* env,
+ const JavaParamRef<jclass>& clazz) {
+ return offline_pages::IsOfflineBookmarksEnabled();
+}
+
+static jboolean IsBackgroundLoadingEnabled(JNIEnv* env,
+ const JavaParamRef<jclass>& clazz) {
+ return offline_pages::IsOfflinePagesBackgroundLoadingEnabled();
}
static jboolean CanSavePage(JNIEnv* env,
« no previous file with comments | « chrome/browser/about_flags.cc ('k') | chrome/browser/android/offline_pages/offline_page_tab_helper_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698