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

Unified Diff: storage/browser/blob/blob_url_request_job_factory.cc

Issue 1120553002: [storage] Replace MessageLoopProxy usage with ThreadTaskRunnerHandle (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed Review Nits Created 5 years, 8 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: storage/browser/blob/blob_url_request_job_factory.cc
diff --git a/storage/browser/blob/blob_url_request_job_factory.cc b/storage/browser/blob/blob_url_request_job_factory.cc
index d9514a1ba290043f93e0e80c45300f46b92388e0..34a0904c4bf510a4e20156192328521d7fb8a354 100644
--- a/storage/browser/blob/blob_url_request_job_factory.cc
+++ b/storage/browser/blob/blob_url_request_job_factory.cc
@@ -6,7 +6,6 @@
#include "base/basictypes.h"
#include "base/compiler_specific.h"
-#include "base/message_loop/message_loop_proxy.h"
#include "base/strings/string_util.h"
#include "net/base/request_priority.h"
#include "net/url_request/url_request_context.h"
@@ -50,8 +49,9 @@ void BlobProtocolHandler::SetRequestedBlobDataHandle(
BlobProtocolHandler::BlobProtocolHandler(
BlobStorageContext* context,
storage::FileSystemContext* file_system_context,
- const scoped_refptr<base::MessageLoopProxy>& loop_proxy)
- : file_system_context_(file_system_context), file_loop_proxy_(loop_proxy) {
+ const scoped_refptr<base::SingleThreadTaskRunner>& task_runner)
+ : file_system_context_(file_system_context),
+ file_task_runner_(task_runner) {
if (context)
context_ = context->AsWeakPtr();
}
@@ -65,7 +65,7 @@ net::URLRequestJob* BlobProtocolHandler::MaybeCreateJob(
network_delegate,
LookupBlobData(request),
file_system_context_.get(),
- file_loop_proxy_.get());
+ file_task_runner_.get());
}
scoped_ptr<BlobDataSnapshot> BlobProtocolHandler::LookupBlobData(
« no previous file with comments | « storage/browser/blob/blob_url_request_job_factory.h ('k') | storage/browser/blob/shareable_file_reference.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698