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

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: 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
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..702524f27126b3c42eff948b60305e81d2e5b55a 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,12 @@ bool IsTabSwitcherEnabled() {
base::CompareCase::INSENSITIVE_ASCII);
}
+bool IsReadingListEnabled() {
+ if ([[NSUserDefaults standardUserDefaults] boolForKey:kEnableReadingList]) {
Olivier 2016/01/25 17:26:39 why not just return [NSUserDefaults... boolForKey:
sdefresne 2016/01/26 10:03:15 +1
stkhapugin 2016/01/26 12:28:33 Done.
+ return true;
+ }
+
+ return false;
+}
+
} // namespace experimental_flags
« ios/chrome/browser/experimental_flags.h ('K') | « ios/chrome/browser/experimental_flags.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698