Index: ios/chrome/browser/about_flags.mm |
diff --git a/ios/chrome/browser/about_flags.mm b/ios/chrome/browser/about_flags.mm |
index 013a617f94600b132548e0c2124088eddeb71577..4f2bb8c16d5a0738d876196c3839f6054d31ba7d 100644 |
--- a/ios/chrome/browser/about_flags.mm |
+++ b/ios/chrome/browser/about_flags.mm |
@@ -286,6 +286,15 @@ void AppendSwitchesFromExperimentalSettings(base::CommandLine* command_line) { |
if ([defaults boolForKey:@"RequestMobileSiteDisabled"]) |
command_line->AppendSwitch(switches::kDisableRequestMobileSite); |
+ // Populate command line flag for 3rd party keyboard omnibox workaround. |
+ NSString* enableThirdPartyKeyboardWorkaround = |
+ [defaults stringForKey:@"EnableThirdPartyKeyboardWorkaround"]; |
+ if ([enableThirdPartyKeyboardWorkaround isEqualToString:@"Enabled"]) { |
+ command_line->AppendSwitch(switches::kEnableThirdPartyKeyboardWorkaround); |
+ } else if ([enableThirdPartyKeyboardWorkaround isEqualToString:@"Disabled"]) { |
+ command_line->AppendSwitch(switches::kDisableThirdPartyKeyboardWorkaround); |
+ } |
+ |
ios::GetChromeBrowserProvider()->AppendSwitchesFromExperimentalSettings( |
defaults, command_line); |
} |