Chromium Code Reviews| 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 |