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

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

Issue 2894883004: Removed IsNativeAppLauncherEnabled() experiment (Closed)
Patch Set: rebase Created 3 years, 6 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 263 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 base::CommandLine* command_line = base::CommandLine::ForCurrentProcess(); 274 base::CommandLine* command_line = base::CommandLine::ForCurrentProcess();
275 if (command_line->HasSwitch(switches::kEnableBookmarkReordering)) 275 if (command_line->HasSwitch(switches::kEnableBookmarkReordering))
276 return true; 276 return true;
277 if (command_line->HasSwitch(switches::kDisableBookmarkReordering)) 277 if (command_line->HasSwitch(switches::kDisableBookmarkReordering))
278 return false; 278 return false;
279 279
280 // By default, disable it. 280 // By default, disable it.
281 return false; 281 return false;
282 } 282 }
283 283
284 bool IsNativeAppLauncherEnabled() {
285 return [[NSUserDefaults standardUserDefaults]
286 boolForKey:@"NativeAppLauncherEnabled"];
287 }
288
289 bool IsNewFeedbackKitEnabled() { 284 bool IsNewFeedbackKitEnabled() {
290 return [[NSUserDefaults standardUserDefaults] 285 return [[NSUserDefaults standardUserDefaults]
291 boolForKey:@"NewFeedbackKitEnabled"]; 286 boolForKey:@"NewFeedbackKitEnabled"];
292 } 287 }
293 288
294 bool IsKeyboardAccessoryViewWithCameraSearchEnabled() { 289 bool IsKeyboardAccessoryViewWithCameraSearchEnabled() {
295 return [[NSUserDefaults standardUserDefaults] 290 return [[NSUserDefaults standardUserDefaults]
296 boolForKey:@"NewKeyboardAccessoryViewEnabled"]; 291 boolForKey:@"NewKeyboardAccessoryViewEnabled"];
297 } 292 }
298 293
299 bool IsSlimNavigationManagerEnabled() { 294 bool IsSlimNavigationManagerEnabled() {
300 // Check if the experimental flag is forced on or off. 295 // Check if the experimental flag is forced on or off.
301 base::CommandLine* command_line = base::CommandLine::ForCurrentProcess(); 296 base::CommandLine* command_line = base::CommandLine::ForCurrentProcess();
302 if (command_line->HasSwitch(switches::kEnableSlimNavigationManager)) { 297 if (command_line->HasSwitch(switches::kEnableSlimNavigationManager)) {
303 return true; 298 return true;
304 } else if (command_line->HasSwitch(switches::kDisableSlimNavigationManager)) { 299 } else if (command_line->HasSwitch(switches::kDisableSlimNavigationManager)) {
305 return false; 300 return false;
306 } 301 }
307 302
308 // Check if the Finch experiment is turned on. 303 // Check if the Finch experiment is turned on.
309 return base::FeatureList::IsEnabled(kEnableSlimNavigationManager); 304 return base::FeatureList::IsEnabled(kEnableSlimNavigationManager);
310 } 305 }
311 306
312 } // namespace experimental_flags 307 } // 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