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

Unified Diff: content/public/test/mock_blob_url_request_context.cc

Issue 1159623009: content: Remove use of MessageLoopProxy and deprecated MessageLoop APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Test build fix. Created 5 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
« no previous file with comments | « content/public/test/frame_load_waiter.cc ('k') | content/public/test/mock_render_thread.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/test/mock_blob_url_request_context.cc
diff --git a/content/public/test/mock_blob_url_request_context.cc b/content/public/test/mock_blob_url_request_context.cc
index f0cd546199109723b03927cdf2995552d00c0208..e2c6fa33912e41ecb7f2afea53ef93f535bf002f 100644
--- a/content/public/test/mock_blob_url_request_context.cc
+++ b/content/public/test/mock_blob_url_request_context.cc
@@ -4,6 +4,7 @@
#include "content/public/test/mock_blob_url_request_context.h"
+#include "base/thread_task_runner_handle.h"
#include "storage/browser/blob/blob_data_builder.h"
#include "storage/browser/blob/blob_storage_context.h"
#include "storage/browser/blob/blob_url_request_job.h"
@@ -16,10 +17,9 @@ MockBlobURLRequestContext::MockBlobURLRequestContext(
: blob_storage_context_(new storage::BlobStorageContext) {
// Job factory owns the protocol handler.
job_factory_.SetProtocolHandler(
- "blob",
- new storage::BlobProtocolHandler(blob_storage_context_.get(),
- file_system_context,
- base::MessageLoopProxy::current()));
+ "blob", new storage::BlobProtocolHandler(
+ blob_storage_context_.get(), file_system_context,
+ base::ThreadTaskRunnerHandle::Get()));
set_job_factory(&job_factory_);
}
« no previous file with comments | « content/public/test/frame_load_waiter.cc ('k') | content/public/test/mock_render_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698