| 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 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 228 | 228 |
| 229 bool IsReadingListEnabled() { | 229 bool IsReadingListEnabled() { |
| 230 return reading_list::switches::IsReadingListEnabled(); | 230 return reading_list::switches::IsReadingListEnabled(); |
| 231 } | 231 } |
| 232 | 232 |
| 233 bool IsSafariVCSignInEnabled() { | 233 bool IsSafariVCSignInEnabled() { |
| 234 return ![[NSUserDefaults standardUserDefaults] | 234 return ![[NSUserDefaults standardUserDefaults] |
| 235 boolForKey:kSafariVCSignInDisabled]; | 235 boolForKey:kSafariVCSignInDisabled]; |
| 236 } | 236 } |
| 237 | 237 |
| 238 bool IsSpotlightActionsEnabled() { | |
| 239 base::CommandLine* command_line = base::CommandLine::ForCurrentProcess(); | |
| 240 return !command_line->HasSwitch(switches::kDisableSpotlightActions); | |
| 241 } | |
| 242 | |
| 243 bool IsStartupCrashEnabled() { | 238 bool IsStartupCrashEnabled() { |
| 244 return [[NSUserDefaults standardUserDefaults] boolForKey:kEnableStartupCrash]; | 239 return [[NSUserDefaults standardUserDefaults] boolForKey:kEnableStartupCrash]; |
| 245 } | 240 } |
| 246 | 241 |
| 247 bool IsTabStripAutoScrollNewTabsEnabled() { | 242 bool IsTabStripAutoScrollNewTabsEnabled() { |
| 248 base::CommandLine* command_line = base::CommandLine::ForCurrentProcess(); | 243 base::CommandLine* command_line = base::CommandLine::ForCurrentProcess(); |
| 249 return !command_line->HasSwitch(switches::kDisableTabStripAutoScrollNewTabs); | 244 return !command_line->HasSwitch(switches::kDisableTabStripAutoScrollNewTabs); |
| 250 } | 245 } |
| 251 | 246 |
| 252 bool IsViewCopyPasswordsEnabled() { | 247 bool IsViewCopyPasswordsEnabled() { |
| (...skipping 21 matching lines...) Expand all Loading... |
| 274 return true; | 269 return true; |
| 275 | 270 |
| 276 if (command_line->HasSwitch(switches::kDisableSuggestionsUI)) | 271 if (command_line->HasSwitch(switches::kDisableSuggestionsUI)) |
| 277 return false; | 272 return false; |
| 278 | 273 |
| 279 // By default, disable it. | 274 // By default, disable it. |
| 280 return false; | 275 return false; |
| 281 } | 276 } |
| 282 | 277 |
| 283 } // namespace experimental_flags | 278 } // namespace experimental_flags |
| OLD | NEW |