content::NavigationController::LoadURLParams params(url);
GURL http_referrer;
- if (options.Get("httpreferrer", &http_referrer))
+ if (options.Get("httpReferrer", &http_referrer))
params.referrer = content::Referrer(http_referrer.GetAsReferrer(),
blink::WebReferrerPolicyDefault);
std::string user_agent;
- if (options.Get("useragent", &user_agent))
+ if (options.Get("userAgent", &user_agent))
SetUserAgent(user_agent);
params.transition_type = ui::PAGE_TRANSITION_TYPED;
* `url` URL
* `options` URL
- * `httpreferrer` String - A HTTP Referer url
- * `useragent` String - A user agent originating the request
+ * `httpReferrer` String - A HTTP Referer url
+ * `userAgent` String - A user agent originating the request
Loads the `url` in the window, the `url` must contains the protocol prefix,
e.g. the `http://` or `file://`.