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

Unified Diff: chrome/browser/image_decoder.cc

Issue 1112403005: [chrome/browser] Replace MessageLoopProxy usage with ThreadTaskRunnerHandle (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed nit 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: chrome/browser/image_decoder.cc
diff --git a/chrome/browser/image_decoder.cc b/chrome/browser/image_decoder.cc
index c3973a5ac843fbe3709120efc63cf9935bbbb710..cb758e585e3403b2876e324ca7a562ea54ff5188 100644
--- a/chrome/browser/image_decoder.cc
+++ b/chrome/browser/image_decoder.cc
@@ -160,8 +160,8 @@ void ImageDecoder::CancelImpl(ImageRequest* image_request) {
void ImageDecoder::StartBatchMode() {
DCHECK_CURRENTLY_ON(BrowserThread::IO);
utility_process_host_ =
- UtilityProcessHost::Create(this, base::MessageLoopProxy::current().get())
- ->AsWeakPtr();
+ UtilityProcessHost::Create(
+ this, base::ThreadTaskRunnerHandle::Get().get())->AsWeakPtr();
utility_process_host_->SetName(l10n_util::GetStringUTF16(
IDS_UTILITY_PROCESS_IMAGE_DECODER_NAME));
if (!utility_process_host_->StartBatchMode()) {

Powered by Google App Engine
This is Rietveld 408576698