mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
chrome: Support configuration of user agent and locale (see issue #2969)
This change adds support for CefSettings and command-line configuration of user_agent, user_agent_product (formerly product_version) and locale.
This commit is contained in:
@@ -150,9 +150,10 @@ bool AlloyMainDelegate::BasicStartupComplete(int* exit_code) {
|
||||
if (settings_->user_agent.length > 0) {
|
||||
command_line->AppendSwitchASCII(embedder_support::kUserAgent,
|
||||
CefString(&settings_->user_agent));
|
||||
} else if (settings_->product_version.length > 0) {
|
||||
command_line->AppendSwitchASCII(switches::kProductVersion,
|
||||
CefString(&settings_->product_version));
|
||||
} else if (settings_->user_agent_product.length > 0) {
|
||||
command_line->AppendSwitchASCII(
|
||||
switches::kUserAgentProductAndVersion,
|
||||
CefString(&settings_->user_agent_product));
|
||||
}
|
||||
|
||||
if (settings_->locale.length > 0) {
|
||||
|
Reference in New Issue
Block a user