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

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

Issue 2676803002: Remove the iOS QR Code scanner experiment code. (Closed)
Patch Set: Addressed comment. 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
« no previous file with comments | « ios/chrome/browser/about_flags.mm ('k') | ios/chrome/browser/chrome_switches.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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 #import "ios/chrome/browser/app_startup_parameters.h" 5 #import "ios/chrome/browser/app_startup_parameters.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "ios/chrome/browser/experimental_flags.h"
9 #import "ios/chrome/browser/xcallback_parameters.h" 8 #import "ios/chrome/browser/xcallback_parameters.h"
10 #include "url/gurl.h" 9 #include "url/gurl.h"
11 10
12 #if !defined(__has_feature) || !__has_feature(objc_arc) 11 #if !defined(__has_feature) || !__has_feature(objc_arc)
13 #error "This file requires ARC support." 12 #error "This file requires ARC support."
14 #endif 13 #endif
15 14
16 @implementation AppStartupParameters { 15 @implementation AppStartupParameters {
17 GURL _externalURL; 16 GURL _externalURL;
18 BOOL _launchVoiceSearch; 17 BOOL _launchVoiceSearch;
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 49
51 - (NSString*)description { 50 - (NSString*)description {
52 return [NSString stringWithFormat:@"ExternalURL: %s \nXCallbackParams: %@", 51 return [NSString stringWithFormat:@"ExternalURL: %s \nXCallbackParams: %@",
53 _externalURL.spec().c_str(), 52 _externalURL.spec().c_str(),
54 _xCallbackParameters]; 53 _xCallbackParameters];
55 } 54 }
56 55
57 #pragma mark Property implementation. 56 #pragma mark Property implementation.
58 57
59 - (BOOL)launchQRScanner { 58 - (BOOL)launchQRScanner {
60 return _launchQRScanner && experimental_flags::IsQRCodeReaderEnabled(); 59 return _launchQRScanner;
61 } 60 }
62 61
63 - (void)setLaunchQRScanner:(BOOL)launch { 62 - (void)setLaunchQRScanner:(BOOL)launch {
64 _launchQRScanner = launch; 63 _launchQRScanner = launch;
65 } 64 }
66 65
67 @end 66 @end
OLDNEW
« no previous file with comments | « ios/chrome/browser/about_flags.mm ('k') | ios/chrome/browser/chrome_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698