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

Unified Diff: webkit/fileapi/file_system_url_request_job_unittest.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 | « webkit/fileapi/file_system_test_helper.cc ('k') | webkit/fileapi/file_writer_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/fileapi/file_system_url_request_job_unittest.cc
diff --git a/webkit/fileapi/file_system_url_request_job_unittest.cc b/webkit/fileapi/file_system_url_request_job_unittest.cc
index 987adb1adc8d22cc39e071d716b207d90760241d..61eee221f6bd3f8e35f365a5a63c81d471aa6643 100644
--- a/webkit/fileapi/file_system_url_request_job_unittest.cc
+++ b/webkit/fileapi/file_system_url_request_job_unittest.cc
@@ -92,13 +92,13 @@ class FileSystemURLRequestJobTest : public testing::Test {
// TODO(adamk): Run this on the FILE thread we've created as well.
file_system_context_ =
new FileSystemContext(
- base::MessageLoopProxy::CreateForCurrentThread(),
- base::MessageLoopProxy::CreateForCurrentThread(),
+ base::MessageLoopProxy::current(),
+ base::MessageLoopProxy::current(),
special_storage_policy_, NULL,
FilePath(), false /* is_incognito */,
false, true,
new FileSystemPathManager(
- base::MessageLoopProxy::CreateForCurrentThread(),
+ base::MessageLoopProxy::current(),
temp_dir_.path(), NULL, false, false));
file_system_context_->path_manager()->ValidateFileSystemRootAndGetURL(
@@ -134,7 +134,7 @@ class FileSystemURLRequestJobTest : public testing::Test {
job_ = new FileSystemURLRequestJob(
request_.get(),
file_system_context_.get(),
- base::MessageLoopProxy::CreateForCurrentThread());
+ base::MessageLoopProxy::current());
request_->Start();
ASSERT_TRUE(request_->is_pending()); // verify that we're starting async
« no previous file with comments | « webkit/fileapi/file_system_test_helper.cc ('k') | webkit/fileapi/file_writer_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698