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

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

Issue 2088993005: Add Physical Web experiment and command line flags (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ios/chrome/browser/chrome_switches.h » ('j') | ios/chrome/browser/experimental_flags.mm » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/about_flags.mm
diff --git a/ios/chrome/browser/about_flags.mm b/ios/chrome/browser/about_flags.mm
index 66aadb42d6f5e25c5cd3262326bb7b2ad6d35de2..9f19234497a032698194b82d2a68c9a7c29c703d 100644
--- a/ios/chrome/browser/about_flags.mm
+++ b/ios/chrome/browser/about_flags.mm
@@ -118,6 +118,15 @@ void AppendSwitchesFromExperimentalSettings(base::CommandLine* command_line) {
command_line->AppendSwitch(switches::kDisableIOSPasswordGeneration);
}
+ // Populate command line flags from PhysicalWebEnabled.
+ NSString* enablePhysicalWebValue =
+ [defaults stringForKey:@"PhysicalWebEnabled"];
+ if ([enablePhysicalWebValue isEqualToString:@"Enabled"]) {
+ command_line->AppendSwitch(switches::kEnableIOSPhysicalWeb);
+ } else if ([enablePhysicalWebValue isEqualToString:@"Disabled"]) {
+ command_line->AppendSwitch(switches::kDisableIOSPhysicalWeb);
+ }
+
// Web page replay flags.
BOOL webPageReplayEnabled = [defaults boolForKey:@"WebPageReplayEnabled"];
NSString* webPageReplayProxy =
« no previous file with comments | « no previous file | ios/chrome/browser/chrome_switches.h » ('j') | ios/chrome/browser/experimental_flags.mm » ('J')

Powered by Google App Engine
This is Rietveld 408576698