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

Unified Diff: net/base/host_resolver_impl.cc

Issue 7583053: Add MessageLoopProxy::current (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: No need for MessageLoopProxy destruction observer. Created 9 years, 4 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/base/directory_lister.cc ('k') | net/disk_cache/backend_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/host_resolver_impl.cc
diff --git a/net/base/host_resolver_impl.cc b/net/base/host_resolver_impl.cc
index 6697507e7b41dd99d0e52f0feb338f611a6044c0..840d263f8a20df292f60dc2f604ddbb89601e44e 100644
--- a/net/base/host_resolver_impl.cc
+++ b/net/base/host_resolver_impl.cc
@@ -364,7 +364,7 @@ class HostResolverImpl::Job
: id_(id),
key_(key),
resolver_(resolver),
- origin_loop_(base::MessageLoopProxy::CreateForCurrentThread()),
+ origin_loop_(base::MessageLoopProxy::current()),
resolver_proc_(resolver->effective_resolver_proc()),
unresponsive_delay_(resolver->unresponsive_delay()),
attempt_number_(0),
@@ -825,7 +825,7 @@ class HostResolverImpl::IPv6ProbeJob
public:
explicit IPv6ProbeJob(HostResolverImpl* resolver)
: resolver_(resolver),
- origin_loop_(base::MessageLoopProxy::CreateForCurrentThread()) {
+ origin_loop_(base::MessageLoopProxy::current()) {
DCHECK(resolver);
}
« no previous file with comments | « net/base/directory_lister.cc ('k') | net/disk_cache/backend_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698