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

Unified Diff: webkit/browser/fileapi/syncable/syncable_file_operation_runner_unittest.cc

Issue 15984016: Call scoped_refptr<T>::get() rather than relying on implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 7 years, 6 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
Index: webkit/browser/fileapi/syncable/syncable_file_operation_runner_unittest.cc
diff --git a/webkit/browser/fileapi/syncable/syncable_file_operation_runner_unittest.cc b/webkit/browser/fileapi/syncable/syncable_file_operation_runner_unittest.cc
index dc3acde9d6cf3e4593f5c9d60e20e519ceabd5a0..3654039f880a1af7d328d44c3eb15a971739bc77 100644
--- a/webkit/browser/fileapi/syncable/syncable_file_operation_runner_unittest.cc
+++ b/webkit/browser/fileapi/syncable/syncable_file_operation_runner_unittest.cc
@@ -44,22 +44,23 @@ class SyncableFileOperationRunnerTest : public testing::Test {
// Use the current thread as IO thread so that we can directly call
// operations in the tests.
SyncableFileOperationRunnerTest()
- : message_loop_(base::MessageLoop::TYPE_IO),
- file_system_(GURL("http://example.com"),
- base::MessageLoopProxy::current(),
- base::MessageLoopProxy::current()),
- callback_count_(0),
- write_status_(base::PLATFORM_FILE_ERROR_FAILED),
- write_bytes_(0),
- write_complete_(false),
- url_request_context_(file_system_.file_system_context()),
- weak_factory_(this) {}
+ : message_loop_(base::MessageLoop::TYPE_IO),
+ file_system_(GURL("http://example.com"),
+ base::MessageLoopProxy::current().get(),
+ base::MessageLoopProxy::current().get()),
+ callback_count_(0),
+ write_status_(base::PLATFORM_FILE_ERROR_FAILED),
+ write_bytes_(0),
+ write_complete_(false),
+ url_request_context_(file_system_.file_system_context()),
+ weak_factory_(this) {}
virtual void SetUp() OVERRIDE {
ASSERT_TRUE(dir_.CreateUniqueTempDir());
file_system_.SetUp();
- sync_context_ = new LocalFileSyncContext(base::MessageLoopProxy::current(),
- base::MessageLoopProxy::current());
+ sync_context_ =
+ new LocalFileSyncContext(base::MessageLoopProxy::current().get(),
+ base::MessageLoopProxy::current().get());
ASSERT_EQ(
SYNC_STATUS_OK,
file_system_.MaybeInitializeFileSystemContext(sync_context_.get()));

Powered by Google App Engine
This is Rietveld 408576698