Fixup code review items

This commit is contained in:
Paul Betts 2015-05-06 14:21:43 -07:00
parent ca63ea0882
commit 5ee0ff9ee9
2 changed files with 2 additions and 2 deletions

View file

@ -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;

View file

@ -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