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

Side by Side Diff: ios/chrome/browser/experimental_flags.mm

Issue 2860573003: Disables Native App Launcher functionality. (Closed)
Patch Set: fixed egtests compilation Created 3 years, 7 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 unified diff | Download patch
OLDNEW
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 250 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 base::CommandLine* command_line = base::CommandLine::ForCurrentProcess(); 261 base::CommandLine* command_line = base::CommandLine::ForCurrentProcess();
262 if (command_line->HasSwitch(switches::kEnableSigninPromo)) 262 if (command_line->HasSwitch(switches::kEnableSigninPromo))
263 return true; 263 return true;
264 if (command_line->HasSwitch(switches::kDisableSigninPromo)) 264 if (command_line->HasSwitch(switches::kDisableSigninPromo))
265 return false; 265 return false;
266 std::string group_name = base::FieldTrialList::FindFullName("IOSSigninPromo"); 266 std::string group_name = base::FieldTrialList::FindFullName("IOSSigninPromo");
267 return base::StartsWith(group_name, "Enabled", 267 return base::StartsWith(group_name, "Enabled",
268 base::CompareCase::INSENSITIVE_ASCII); 268 base::CompareCase::INSENSITIVE_ASCII);
269 } 269 }
270 270
271 bool IsNativeAppLauncherEnabled() {
272 return [[NSUserDefaults standardUserDefaults]
273 boolForKey:@"NativeAppLauncherEnabled"];
274 }
275
271 } // namespace experimental_flags 276 } // namespace experimental_flags
OLDNEW
« no previous file with comments | « ios/chrome/browser/experimental_flags.h ('k') | ios/chrome/browser/resources/Settings.bundle/Experimental.plist » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698