Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(69)

Unified Diff: net/proxy/proxy_service.cc

Issue 4192012: Convert implicit scoped_refptr constructor calls to explicit ones, part 1 (Closed) Base URL: http://git.chromium.org/git/chromium.git
Patch Set: fix presubmit Created 10 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/proxy/proxy_script_fetcher_impl_unittest.cc ('k') | net/server/http_listen_socket.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/proxy/proxy_service.cc
diff --git a/net/proxy/proxy_service.cc b/net/proxy/proxy_service.cc
index db22cc1007a2a33352a23b29ae4de03020de2450..e28e3256bad453278ba92df9d9e00d13b74017a6 100644
--- a/net/proxy/proxy_service.cc
+++ b/net/proxy/proxy_service.cc
@@ -512,8 +512,8 @@ int ProxyService::ResolveProxy(const GURL& raw_url,
if (rv != ERR_IO_PENDING)
return DidFinishResolvingProxy(result, rv, net_log);
- scoped_refptr<PacRequest> req =
- new PacRequest(this, url, result, callback, net_log);
+ scoped_refptr<PacRequest> req(
+ new PacRequest(this, url, result, callback, net_log));
if (current_state_ == STATE_READY) {
// Start the resolve request.
@@ -818,8 +818,8 @@ ProxyConfigService* ProxyService::CreateSystemProxyConfigService(
void ProxyService::OnProxyConfigChanged(const ProxyConfig& config) {
// Emit the proxy settings change to the NetLog stream.
if (net_log_) {
- scoped_refptr<NetLog::EventParameters> params =
- new ProxyConfigChangedNetLogParam(fetched_config_, config);
+ scoped_refptr<NetLog::EventParameters> params(
+ new ProxyConfigChangedNetLogParam(fetched_config_, config));
net_log_->AddEntry(net::NetLog::TYPE_PROXY_CONFIG_CHANGED,
base::TimeTicks::Now(),
NetLog::Source(),
« no previous file with comments | « net/proxy/proxy_script_fetcher_impl_unittest.cc ('k') | net/server/http_listen_socket.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698