We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 67f36d2 commit c012b25Copy full SHA for c012b25
src/shell_content_browser_client.cc
@@ -181,6 +181,11 @@ void ShellContentBrowserClient::AppendExtraCommandLineSwitches(
181
if (content::IsThreadedCompositingEnabled())
182
command_line->AppendSwitch(switches::kEnableThreadedCompositing);
183
184
+ std::string user_agent;
185
+ if (!command_line->HasSwitch(switches::kUserAgent) &&
186
+ GetUserAgentManifest(&user_agent)) {
187
+ command_line->AppendSwitchASCII(switches::kUserAgent, user_agent);
188
+ }
189
if (child_process_id > 0) {
190
content::RenderWidgetHost::List widgets =
191
content::RenderWidgetHost::GetRenderWidgetHosts();
0 commit comments