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

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

Issue 2680263003: Remove the iOS QR Code scanner experiment code. (Closed)
Patch Set: Created 3 years, 10 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 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 return false; 238 return false;
239 } 239 }
240 240
241 // Check if the finch experiment is turned on 241 // Check if the finch experiment is turned on
242 std::string group_name = 242 std::string group_name =
243 base::FieldTrialList::FindFullName("PhysicalWebEnabled"); 243 base::FieldTrialList::FindFullName("PhysicalWebEnabled");
244 return base::StartsWith(group_name, "Enabled", 244 return base::StartsWith(group_name, "Enabled",
245 base::CompareCase::INSENSITIVE_ASCII); 245 base::CompareCase::INSENSITIVE_ASCII);
246 } 246 }
247 247
248 bool IsQRCodeReaderEnabled() {
249 base::CommandLine* command_line = base::CommandLine::ForCurrentProcess();
250 return !command_line->HasSwitch(switches::kDisableQRScanner);
251 }
252
253 bool IsReaderModeEnabled() { 248 bool IsReaderModeEnabled() {
254 return base::CommandLine::ForCurrentProcess()->HasSwitch( 249 return base::CommandLine::ForCurrentProcess()->HasSwitch(
255 switches::kEnableReaderModeToolbarIcon); 250 switches::kEnableReaderModeToolbarIcon);
256 } 251 }
257 252
258 bool IsReadingListEnabled() { 253 bool IsReadingListEnabled() {
259 return reading_list::switches::IsReadingListEnabled(); 254 return reading_list::switches::IsReadingListEnabled();
260 } 255 }
261 256
262 bool IsSafariVCSignInEnabled() { 257 bool IsSafariVCSignInEnabled() {
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
303 if ([[NSUserDefaults standardUserDefaults] 298 if ([[NSUserDefaults standardUserDefaults]
304 boolForKey:kHeuristicsForPasswordGeneration]) { 299 boolForKey:kHeuristicsForPasswordGeneration]) {
305 return true; 300 return true;
306 } 301 }
307 base::CommandLine* command_line = base::CommandLine::ForCurrentProcess(); 302 base::CommandLine* command_line = base::CommandLine::ForCurrentProcess();
308 return command_line->HasSwitch( 303 return command_line->HasSwitch(
309 autofill::switches::kLocalHeuristicsOnlyForPasswordGeneration); 304 autofill::switches::kLocalHeuristicsOnlyForPasswordGeneration);
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