| 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 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 255 base::CommandLine* command_line = base::CommandLine::ForCurrentProcess(); | 255 base::CommandLine* command_line = base::CommandLine::ForCurrentProcess(); |
| 256 if (command_line->HasSwitch(switches::kEnableSigninPromo)) | 256 if (command_line->HasSwitch(switches::kEnableSigninPromo)) |
| 257 return true; | 257 return true; |
| 258 if (command_line->HasSwitch(switches::kDisableSigninPromo)) | 258 if (command_line->HasSwitch(switches::kDisableSigninPromo)) |
| 259 return false; | 259 return false; |
| 260 std::string group_name = base::FieldTrialList::FindFullName("IOSSigninPromo"); | 260 std::string group_name = base::FieldTrialList::FindFullName("IOSSigninPromo"); |
| 261 return base::StartsWith(group_name, "Enabled", | 261 return base::StartsWith(group_name, "Enabled", |
| 262 base::CompareCase::INSENSITIVE_ASCII); | 262 base::CompareCase::INSENSITIVE_ASCII); |
| 263 } | 263 } |
| 264 | 264 |
| 265 bool IsNativeAppLauncherEnabled() { | |
| 266 return [[NSUserDefaults standardUserDefaults] | |
| 267 boolForKey:@"NativeAppLauncherEnabled"]; | |
| 268 } | |
| 269 | |
| 270 } // namespace experimental_flags | 265 } // namespace experimental_flags |
| OLD | NEW |