From: Paul Betts Date: Wed, 6 May 2015 21:21:43 +0000 (-0700) Subject: Fixup code review items X-Git-Tag: v0.26.1~21^2~1 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=5ee0ff9ee909943213c8fcc49d965fa81c31ab55;p=electron.git Fixup code review items --- diff --git a/atom/browser/api/atom_api_web_contents.cc b/atom/browser/api/atom_api_web_contents.cc index 8814057b..9894241f 100644 --- a/atom/browser/api/atom_api_web_contents.cc +++ b/atom/browser/api/atom_api_web_contents.cc @@ -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; diff --git a/atom/renderer/lib/web-view/web-view-attributes.coffee b/atom/renderer/lib/web-view/web-view-attributes.coffee index 9fd8e515..51dd2475 100644 --- a/atom/renderer/lib/web-view/web-view-attributes.coffee +++ b/atom/renderer/lib/web-view/web-view-attributes.coffee @@ -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