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/about_flags.mm

Issue 2956013002: [ios] Workaround error affecting 3rd party keyboards and omnibox. (Closed)
Patch Set: Update comment Created 3 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') | no next file with comments »
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 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);
}
« no previous file with comments | « no previous file | ios/chrome/browser/chrome_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698