Fixup code review items
This commit is contained in:
parent
ca63ea0882
commit
5ee0ff9ee9
2 changed files with 2 additions and 2 deletions
|
@ -420,7 +420,7 @@ void WebContents::LoadURL(const GURL& url, const mate::Dictionary& options) {
|
|||
|
||||
std::string user_agent;
|
||||
if (options.Get("useragent", &user_agent))
|
||||
this->SetUserAgent(user_agent);
|
||||
SetUserAgent(user_agent);
|
||||
|
||||
params.transition_type = ui::PAGE_TRANSITION_TYPED;
|
||||
params.should_clear_history_list = true;
|
||||
|
|
|
@ -173,7 +173,7 @@ class HttpReferrerAttribute extends WebViewAttribute
|
|||
constructor: (webViewImpl) ->
|
||||
super webViewConstants.ATTRIBUTE_HTTPREFERRER, webViewImpl
|
||||
|
||||
# Attribute specifies HTTP referrer.
|
||||
# Attribute specifies user agent
|
||||
class UserAgentAttribute extends WebViewAttribute
|
||||
constructor: (webViewImpl) ->
|
||||
super webViewConstants.ATTRIBUTE_USERAGENT, webViewImpl
|
||||
|
|
Loading…
Reference in a new issue