summaryrefslogtreecommitdiffstats
path: root/net/proxy
diff options
context:
space:
mode:
authorthakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-11-01 04:16:27 +0000
committerthakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-11-01 04:16:27 +0000
commitad8e04ac88be37d5ccb6c2cf61f52b224dca493c (patch)
tree9bcb878643bdd9e5af6749fff469b2552e569907 /net/proxy
parent5af8043eb24ad60251d8a4e33192e3e6f59246a3 (diff)
downloadchromium_src-ad8e04ac88be37d5ccb6c2cf61f52b224dca493c.zip
chromium_src-ad8e04ac88be37d5ccb6c2cf61f52b224dca493c.tar.gz
chromium_src-ad8e04ac88be37d5ccb6c2cf61f52b224dca493c.tar.bz2
Convert implicit scoped_refptr constructor calls to explicit ones, part 1
This CL was created automatically by this clang rewriter: http://codereview.appspot.com/2776043/ . I manually fixed a few rough spots of the rewriter output (doh1-3) and fixed all presubmit errors. BUG=28083 TEST=None Review URL: http://codereview.chromium.org/4192012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@64573 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/proxy')
-rw-r--r--net/proxy/multi_threaded_proxy_resolver.cc4
-rw-r--r--net/proxy/proxy_script_fetcher_impl_unittest.cc16
-rw-r--r--net/proxy/proxy_service.cc8
3 files changed, 14 insertions, 14 deletions
diff --git a/net/proxy/multi_threaded_proxy_resolver.cc b/net/proxy/multi_threaded_proxy_resolver.cc
index 95071b1..22fe5e4 100644
--- a/net/proxy/multi_threaded_proxy_resolver.cc
+++ b/net/proxy/multi_threaded_proxy_resolver.cc
@@ -410,8 +410,8 @@ int MultiThreadedProxyResolver::GetProxyForURL(const GURL& url,
DCHECK(current_script_data_.get())
<< "Resolver is un-initialized. Must call SetPacScript() first!";
- scoped_refptr<GetProxyForURLJob> job =
- new GetProxyForURLJob(url, results, callback, net_log);
+ scoped_refptr<GetProxyForURLJob> job(
+ new GetProxyForURLJob(url, results, callback, net_log));
// Completion will be notified through |callback|, unless the caller cancels
// the request using |request|.
diff --git a/net/proxy/proxy_script_fetcher_impl_unittest.cc b/net/proxy/proxy_script_fetcher_impl_unittest.cc
index f9828ee..2642f4d 100644
--- a/net/proxy/proxy_script_fetcher_impl_unittest.cc
+++ b/net/proxy/proxy_script_fetcher_impl_unittest.cc
@@ -78,7 +78,7 @@ class ProxyScriptFetcherImplTest : public PlatformTest {
};
TEST_F(ProxyScriptFetcherImplTest, FileUrl) {
- scoped_refptr<URLRequestContext> context = new RequestContext;
+ scoped_refptr<URLRequestContext> context(new RequestContext);
scoped_ptr<ProxyScriptFetcher> pac_fetcher(
new ProxyScriptFetcherImpl(context));
@@ -107,7 +107,7 @@ TEST_F(ProxyScriptFetcherImplTest, FileUrl) {
TEST_F(ProxyScriptFetcherImplTest, HttpMimeType) {
ASSERT_TRUE(test_server_.Start());
- scoped_refptr<URLRequestContext> context = new RequestContext;
+ scoped_refptr<URLRequestContext> context(new RequestContext);
scoped_ptr<ProxyScriptFetcher> pac_fetcher(
new ProxyScriptFetcherImpl(context));
@@ -143,7 +143,7 @@ TEST_F(ProxyScriptFetcherImplTest, HttpMimeType) {
TEST_F(ProxyScriptFetcherImplTest, HttpStatusCode) {
ASSERT_TRUE(test_server_.Start());
- scoped_refptr<URLRequestContext> context = new RequestContext;
+ scoped_refptr<URLRequestContext> context(new RequestContext);
scoped_ptr<ProxyScriptFetcher> pac_fetcher(
new ProxyScriptFetcherImpl(context));
@@ -170,7 +170,7 @@ TEST_F(ProxyScriptFetcherImplTest, HttpStatusCode) {
TEST_F(ProxyScriptFetcherImplTest, ContentDisposition) {
ASSERT_TRUE(test_server_.Start());
- scoped_refptr<URLRequestContext> context = new RequestContext;
+ scoped_refptr<URLRequestContext> context(new RequestContext);
scoped_ptr<ProxyScriptFetcher> pac_fetcher(
new ProxyScriptFetcherImpl(context));
@@ -188,7 +188,7 @@ TEST_F(ProxyScriptFetcherImplTest, ContentDisposition) {
TEST_F(ProxyScriptFetcherImplTest, NoCache) {
ASSERT_TRUE(test_server_.Start());
- scoped_refptr<URLRequestContext> context = new RequestContext;
+ scoped_refptr<URLRequestContext> context(new RequestContext);
scoped_ptr<ProxyScriptFetcher> pac_fetcher(
new ProxyScriptFetcherImpl(context));
@@ -221,7 +221,7 @@ TEST_F(ProxyScriptFetcherImplTest, NoCache) {
TEST_F(ProxyScriptFetcherImplTest, TooLarge) {
ASSERT_TRUE(test_server_.Start());
- scoped_refptr<URLRequestContext> context = new RequestContext;
+ scoped_refptr<URLRequestContext> context(new RequestContext);
scoped_ptr<ProxyScriptFetcherImpl> pac_fetcher(
new ProxyScriptFetcherImpl(context));
@@ -263,7 +263,7 @@ TEST_F(ProxyScriptFetcherImplTest, TooLarge) {
TEST_F(ProxyScriptFetcherImplTest, Hang) {
ASSERT_TRUE(test_server_.Start());
- scoped_refptr<URLRequestContext> context = new RequestContext;
+ scoped_refptr<URLRequestContext> context(new RequestContext);
scoped_ptr<ProxyScriptFetcherImpl> pac_fetcher(
new ProxyScriptFetcherImpl(context));
@@ -302,7 +302,7 @@ TEST_F(ProxyScriptFetcherImplTest, Hang) {
TEST_F(ProxyScriptFetcherImplTest, Encodings) {
ASSERT_TRUE(test_server_.Start());
- scoped_refptr<URLRequestContext> context = new RequestContext;
+ scoped_refptr<URLRequestContext> context(new RequestContext);
scoped_ptr<ProxyScriptFetcher> pac_fetcher(
new ProxyScriptFetcherImpl(context));
diff --git a/net/proxy/proxy_service.cc b/net/proxy/proxy_service.cc
index db22cc1..e28e325 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(),