| Index: content/browser/cache_storage/cache_storage_cache_unittest.cc
|
| diff --git a/content/browser/cache_storage/cache_storage_cache_unittest.cc b/content/browser/cache_storage/cache_storage_cache_unittest.cc
|
| index 57350d2cc27a2b064de51fa0a8c963a0267e9923..2f11ab7735025bf6325202dde765979a7df17cc8 100644
|
| --- a/content/browser/cache_storage/cache_storage_cache_unittest.cc
|
| +++ b/content/browser/cache_storage/cache_storage_cache_unittest.cc
|
| @@ -6,9 +6,9 @@
|
|
|
| #include "base/files/file_path.h"
|
| #include "base/files/scoped_temp_dir.h"
|
| -#include "base/message_loop/message_loop_proxy.h"
|
| #include "base/run_loop.h"
|
| #include "base/strings/string_split.h"
|
| +#include "base/thread_task_runner_handle.h"
|
| #include "content/browser/fileapi/chrome_blob_storage_context.h"
|
| #include "content/browser/fileapi/mock_url_request_delegate.h"
|
| #include "content/browser/quota/mock_quota_manager_proxy.h"
|
| @@ -38,10 +38,10 @@ const char kTestData[] = "Hello World";
|
| // the memory.
|
| storage::BlobProtocolHandler* CreateMockBlobProtocolHandler(
|
| storage::BlobStorageContext* blob_storage_context) {
|
| - // The FileSystemContext and MessageLoopProxy are not actually used but a
|
| - // MessageLoopProxy is needed to avoid a DCHECK in BlobURLRequestJob ctor.
|
| + // The FileSystemContext and thread task runner are not actually used but a
|
| + // task runner is needed to avoid a DCHECK in BlobURLRequestJob ctor.
|
| return new storage::BlobProtocolHandler(
|
| - blob_storage_context, NULL, base::MessageLoopProxy::current().get());
|
| + blob_storage_context, NULL, base::ThreadTaskRunnerHandle::Get().get());
|
| }
|
|
|
| // A disk_cache::Backend wrapper that can delay operations.
|
| @@ -186,7 +186,7 @@ class CacheStorageCacheTest : public testing::Test {
|
| blob_storage_context_ = blob_storage_context->context();
|
|
|
| quota_manager_proxy_ = new MockQuotaManagerProxy(
|
| - nullptr, base::MessageLoopProxy::current().get());
|
| + nullptr, base::ThreadTaskRunnerHandle::Get().get());
|
|
|
| url_request_job_factory_.reset(new net::URLRequestJobFactoryImpl);
|
| url_request_job_factory_->SetProtocolHandler(
|
| @@ -261,8 +261,7 @@ class CacheStorageCacheTest : public testing::Test {
|
| base::Bind(&CacheStorageCacheTest::ErrorTypeCallback,
|
| base::Unretained(this), base::Unretained(loop.get())));
|
| // TODO(jkarlin): These functions should use base::RunLoop().RunUntilIdle()
|
| - // once the cache uses a passed in MessageLoopProxy instead of the CACHE
|
| - // thread.
|
| + // once the cache uses a passed in task runner instead of the CACHE thread.
|
| loop->Run();
|
|
|
| return callback_error_;
|
|
|