| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // This file can be empty. Its purpose is to contain the relatively short lived | 5 // This file can be empty. Its purpose is to contain the relatively short lived |
| 6 // definitions required for experimental flags. | 6 // definitions required for experimental flags. |
| 7 | 7 |
| 8 #include "ios/chrome/browser/experimental_flags.h" | 8 #include "ios/chrome/browser/experimental_flags.h" |
| 9 | 9 |
| 10 #include <dispatch/dispatch.h> | 10 #include <dispatch/dispatch.h> |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 | 22 |
| 23 namespace { | 23 namespace { |
| 24 NSString* const kEnableAlertOnBackgroundUpload = | 24 NSString* const kEnableAlertOnBackgroundUpload = |
| 25 @"EnableAlertsOnBackgroundUpload"; | 25 @"EnableAlertsOnBackgroundUpload"; |
| 26 NSString* const kEnableViewCopyPasswords = @"EnableViewCopyPasswords"; | 26 NSString* const kEnableViewCopyPasswords = @"EnableViewCopyPasswords"; |
| 27 NSString* const kHeuristicsForPasswordGeneration = | 27 NSString* const kHeuristicsForPasswordGeneration = |
| 28 @"HeuristicsForPasswordGeneration"; | 28 @"HeuristicsForPasswordGeneration"; |
| 29 NSString* const kEnableReadingList = @"EnableReadingList"; | 29 NSString* const kEnableReadingList = @"EnableReadingList"; |
| 30 NSString* const kEnableNewClearBrowsingDataUI = @"EnableNewClearBrowsingDataUI"; | 30 NSString* const kEnableNewClearBrowsingDataUI = @"EnableNewClearBrowsingDataUI"; |
| 31 NSString* const kMDMIntegrationDisabled = @"MDMIntegrationDisabled"; | 31 NSString* const kMDMIntegrationDisabled = @"MDMIntegrationDisabled"; |
| 32 NSString* const kPendingIndexNavigationEnabled = |
| 33 @"PendingIndexNavigationEnabled"; |
| 32 } // namespace | 34 } // namespace |
| 33 | 35 |
| 34 namespace experimental_flags { | 36 namespace experimental_flags { |
| 35 | 37 |
| 36 bool IsAlertOnBackgroundUploadEnabled() { | 38 bool IsAlertOnBackgroundUploadEnabled() { |
| 37 return [[NSUserDefaults standardUserDefaults] | 39 return [[NSUserDefaults standardUserDefaults] |
| 38 boolForKey:kEnableAlertOnBackgroundUpload]; | 40 boolForKey:kEnableAlertOnBackgroundUpload]; |
| 39 } | 41 } |
| 40 | 42 |
| 41 bool IsLRUSnapshotCacheEnabled() { | 43 bool IsLRUSnapshotCacheEnabled() { |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 bool IsSpotlightActionsEnabled() { | 175 bool IsSpotlightActionsEnabled() { |
| 174 base::CommandLine* command_line = base::CommandLine::ForCurrentProcess(); | 176 base::CommandLine* command_line = base::CommandLine::ForCurrentProcess(); |
| 175 return !command_line->HasSwitch(switches::kDisableSpotlightActions); | 177 return !command_line->HasSwitch(switches::kDisableSpotlightActions); |
| 176 } | 178 } |
| 177 | 179 |
| 178 bool IsMDMIntegrationEnabled() { | 180 bool IsMDMIntegrationEnabled() { |
| 179 return ![[NSUserDefaults standardUserDefaults] | 181 return ![[NSUserDefaults standardUserDefaults] |
| 180 boolForKey:kMDMIntegrationDisabled]; | 182 boolForKey:kMDMIntegrationDisabled]; |
| 181 } | 183 } |
| 182 | 184 |
| 185 bool IsPendingIndexNavigationEnabled() { |
| 186 return [[NSUserDefaults standardUserDefaults] |
| 187 boolForKey:kPendingIndexNavigationEnabled]; |
| 188 } |
| 189 |
| 183 } // namespace experimental_flags | 190 } // namespace experimental_flags |
| OLD | NEW |