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

Unified Diff: ios/chrome/browser/experimental_flags.mm

Issue 1631813002: Adds EnableReadingList experimental flag. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comments Created 4 years, 11 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
« no previous file with comments | « ios/chrome/browser/experimental_flags.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/experimental_flags.mm
diff --git a/ios/chrome/browser/experimental_flags.mm b/ios/chrome/browser/experimental_flags.mm
index ccbe26b6792b55cc7e1f7ee45cbc2a413912e60b..21f8828069cd5a562902373c890463cef7bd3f0d 100644
--- a/ios/chrome/browser/experimental_flags.mm
+++ b/ios/chrome/browser/experimental_flags.mm
@@ -28,6 +28,7 @@ NSString* const kEnableViewCopyPasswords = @"EnableViewCopyPasswords";
NSString* const kHeuristicsForPasswordGeneration =
@"HeuristicsForPasswordGeneration";
const char* const kWKWebViewTrialName = "IOSUseWKWebView";
+NSString* const kEnableReadingList = @"EnableReadingList";
enum class WKWebViewEligibility {
// UNSET indicates that no explicit call to set eligibility has been made,
@@ -238,4 +239,8 @@ bool IsTabSwitcherEnabled() {
base::CompareCase::INSENSITIVE_ASCII);
}
+bool IsReadingListEnabled() {
+ return [[NSUserDefaults standardUserDefaults] boolForKey:kEnableReadingList];
+}
+
} // namespace experimental_flags
« no previous file with comments | « ios/chrome/browser/experimental_flags.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698