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

Unified Diff: net/proxy/polling_proxy_config_service.cc

Issue 15829004: Update net/ to use scoped_refptr<T>::get() rather than implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: license twerk Created 7 years, 7 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/multi_threaded_proxy_resolver_unittest.cc ('k') | net/proxy/proxy_config_service_linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/proxy/polling_proxy_config_service.cc
diff --git a/net/proxy/polling_proxy_config_service.cc b/net/proxy/polling_proxy_config_service.cc
index a03422a300d64cbaeffb0edd91a007d5c1754d6e..5fa7b561a1dc6502d8e04d9ac59c9c83d26b2b3d 100644
--- a/net/proxy/polling_proxy_config_service.cc
+++ b/net/proxy/polling_proxy_config_service.cc
@@ -105,10 +105,9 @@ class PollingProxyConfigService::Core
func(&config);
base::AutoLock l(lock_);
- if (origin_loop_proxy_) {
+ if (origin_loop_proxy_.get()) {
origin_loop_proxy_->PostTask(
- FROM_HERE,
- base::Bind(&Core::GetConfigCompleted, this, config));
+ FROM_HERE, base::Bind(&Core::GetConfigCompleted, this, config));
}
}
@@ -117,7 +116,7 @@ class PollingProxyConfigService::Core
DCHECK(poll_task_outstanding_);
poll_task_outstanding_ = false;
- if (!origin_loop_proxy_)
+ if (!origin_loop_proxy_.get())
return; // Was orphaned (parent has already been destroyed).
DCHECK(origin_loop_proxy_->BelongsToCurrentThread());
« no previous file with comments | « net/proxy/multi_threaded_proxy_resolver_unittest.cc ('k') | net/proxy/proxy_config_service_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698