OLD | NEW |
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 Loading... |
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 |
OLD | NEW |