Making Http Referrer addition better!
- Code cleanup
This commit is contained in:
parent
f56d1ea7b4
commit
ef255db069
4 changed files with 15 additions and 26 deletions
|
@ -291,7 +291,7 @@ void WebContents::LoadURL(const GURL& url, const mate::Dictionary& options) {
|
|||
|
||||
base::string16 http_referrer_;
|
||||
|
||||
if(options.Get("httpReferrer", &http_referrer_))
|
||||
if (options.Get("httpreferrer", &http_referrer_))
|
||||
params.referrer = content::Referrer(GURL(http_referrer_).GetAsReferrer(), blink::WebReferrerPolicyDefault);
|
||||
|
||||
params.transition_type = content::PAGE_TRANSITION_TYPED;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue