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

Unified Diff: ios/chrome/browser/app_startup_parameters.mm

Issue 2169463003: Add an experimental settings check into the getter for launchQRScanner. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changed formatting of launchQRScanner. Created 4 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/app_startup_parameters.mm
diff --git a/ios/chrome/browser/app_startup_parameters.mm b/ios/chrome/browser/app_startup_parameters.mm
index 8cac49b54a8016f139a496feba7ead51de1509b4..dd43c246b4a2e16654aa35aa159c35565f9f1c36 100644
--- a/ios/chrome/browser/app_startup_parameters.mm
+++ b/ios/chrome/browser/app_startup_parameters.mm
@@ -6,6 +6,7 @@
#include "base/logging.h"
#import "base/mac/scoped_nsobject.h"
+#include "ios/chrome/browser/experimental_flags.h"
#import "ios/chrome/browser/xcallback_parameters.h"
#include "url/gurl.h"
@@ -19,7 +20,6 @@
@synthesize launchVoiceSearch = _launchVoiceSearch;
@synthesize launchInIncognito = _launchInIncognito;
-@synthesize launchQRScanner = _launchQRScanner;
- (const GURL&)externalURL {
return _externalURL;
@@ -54,4 +54,14 @@
_xCallbackParameters.get()];
}
+#pragma mark Property implementation.
+
+- (BOOL)launchQRScanner {
+ return _launchQRScanner && experimental_flags::IsQRCodeReaderEnabled();
+}
+
+- (void)setLaunchQRScanner:(BOOL)launch {
+ _launchQRScanner = launch;
+}
+
@end
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698