diff options
author | jianli <jianli@chromium.org> | 2016-01-19 20:11:07 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-01-20 04:12:26 +0000 |
commit | 33ced7a1ea60824e88c132d727dd864b37b0e6e2 (patch) | |
tree | 1f309fff93c417ce6d324e5f01574798ef0e749c /components/offline_pages/offline_page_feature.h | |
parent | 78f86e4a1f05241ed5dae1d67faeeec8e87a4351 (diff) | |
download | chromium_src-33ced7a1ea60824e88c132d727dd864b37b0e6e2.zip chromium_src-33ced7a1ea60824e88c132d727dd864b37b0e6e2.tar.gz chromium_src-33ced7a1ea60824e88c132d727dd864b37b0e6e2.tar.bz2 |
Show alternate UI strings for offline pages per experiment settings
BUG=565566
Review URL: https://codereview.chromium.org/1580233002
Cr-Commit-Position: refs/heads/master@{#370299}
Diffstat (limited to 'components/offline_pages/offline_page_feature.h')
-rw-r--r-- | components/offline_pages/offline_page_feature.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/components/offline_pages/offline_page_feature.h b/components/offline_pages/offline_page_feature.h index 0bf6ad2..600140f 100644 --- a/components/offline_pages/offline_page_feature.h +++ b/components/offline_pages/offline_page_feature.h @@ -11,6 +11,19 @@ namespace offline_pages { +// 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(); |