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

Unified Diff: net/disk_cache/disk_cache_test_base.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/disk_cache/backend_unittest.cc ('k') | net/disk_cache/disk_cache_test_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/disk_cache/disk_cache_test_base.cc
diff --git a/net/disk_cache/disk_cache_test_base.cc b/net/disk_cache/disk_cache_test_base.cc
index bbcb65d89c1e6b40f85304b6e4358192491031f7..24f05f975f48787311c96ce9cd55a99bb5a83ba5 100644
--- a/net/disk_cache/disk_cache_test_base.cc
+++ b/net/disk_cache/disk_cache_test_base.cc
@@ -250,7 +250,7 @@ void DiskCacheTestWithCache::InitDiskCache() {
return InitDiskCacheImpl(path);
scoped_refptr<base::MessageLoopProxy> thread =
- use_current_thread_ ? base::MessageLoopProxy::CreateForCurrentThread() :
+ use_current_thread_ ? base::MessageLoopProxy::current() :
cache_thread_.message_loop_proxy();
TestCompletionCallback cb;
@@ -262,7 +262,7 @@ void DiskCacheTestWithCache::InitDiskCache() {
void DiskCacheTestWithCache::InitDiskCacheImpl(const FilePath& path) {
scoped_refptr<base::MessageLoopProxy> thread =
- use_current_thread_ ? base::MessageLoopProxy::CreateForCurrentThread() :
+ use_current_thread_ ? base::MessageLoopProxy::current() :
cache_thread_.message_loop_proxy();
if (mask_)
cache_impl_ = new disk_cache::BackendImpl(path, mask_, thread, NULL);
« no previous file with comments | « net/disk_cache/backend_unittest.cc ('k') | net/disk_cache/disk_cache_test_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698