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

Unified Diff: components/offline_pages/offline_page_feature.h

Issue 1899433002: Update flags used by offline pages and bookmarks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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: components/offline_pages/offline_page_feature.h
diff --git a/components/offline_pages/offline_page_feature.h b/components/offline_pages/offline_page_feature.h
index fde3a5ee78eaaa8610a3eefb019901018114a513..f478bec89d7fd4828b79c17a922d838a4c056fdb 100644
--- a/components/offline_pages/offline_page_feature.h
+++ b/components/offline_pages/offline_page_feature.h
@@ -10,24 +10,12 @@
namespace offline_pages {
+extern const base::Feature kOfflineBookmarksFeature;
extern const base::Feature kOffliningRecentPagesFeature;
extern const base::Feature kOfflinePagesBackgroundLoadingFeature;
-// GENERATED_JAVA_ENUM_PACKAGE: org.chromium.components.offlinepages
-enum class FeatureMode {
- // Offline pages feature is disabled.
- DISABLED,
- // Offline pages feature is enabled, showing bookmarks in UI strings.
- ENABLED_AS_BOOKMARKS,
- // Offline pages feature is enabled, showing saved pages in UI strings.
- ENABLED_AS_SAVED_PAGES
-};
-
-// Returns the mode where Offline Pages feature is running.
-FeatureMode GetOfflinePageFeatureMode();
-
-// Returns true if offline pages is enabled.
-bool IsOfflinePagesEnabled();
+// Returns true if offline bookmarks is enabled.
+bool IsOfflineBookmarksEnabled();
// Returns true if offlining of recent pages (aka 'Last N pages') is enabled.
bool IsOffliningRecentPagesEnabled();

Powered by Google App Engine
This is Rietveld 408576698