]> khamidou — GitHub mirrors - electron.git/commitdiff
Fixup code review items
authorPaul Betts <paul@paulbetts.org>
Wed, 6 May 2015 21:21:43 +0000 (14:21 -0700)
committerPaul Betts <paul@paulbetts.org>
Tue, 19 May 2015 21:27:15 +0000 (14:27 -0700)
atom/browser/api/atom_api_web_contents.cc
atom/renderer/lib/web-view/web-view-attributes.coffee

index 8814057b9b9947f2ce25db81ece0af0c42d03688..9894241f74ee411e6f6bc866a2f568840b434c12 100644 (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;
index 9fd8e5151a787efc65a95505857f6ed082feea23..51dd2475a4e0f5393a9490f366466a55f1125ee8 100644 (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