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

Unified Diff: components/test_runner/web_test_proxy.cc

Issue 1169923009: Remove remaining use of the deprecated MessageLoopProxy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix typo. 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
Index: components/test_runner/web_test_proxy.cc
diff --git a/components/test_runner/web_test_proxy.cc b/components/test_runner/web_test_proxy.cc
index 766459d30835f462fe8612710ce9bcaba15d8a72..2f0c0c744934a6601567c3620fe886c7e7235e6c 100644
--- a/components/test_runner/web_test_proxy.cc
+++ b/components/test_runner/web_test_proxy.cc
@@ -12,6 +12,7 @@
#include "base/strings/string_util.h"
#include "base/strings/stringprintf.h"
#include "base/strings/utf_string_conversions.h"
+#include "base/thread_task_runner_handle.h"
#include "base/trace_event/trace_event.h"
#include "components/test_runner/accessibility_controller.h"
#include "components/test_runner/event_sender.h"
@@ -629,11 +630,9 @@ void WebTestProxyBase::CapturePixelsAsync(
}
if (test_interfaces_->GetTestRunner()->isPrinting()) {
- base::MessageLoopProxy::current()->PostTask(
- FROM_HERE,
- base::Bind(&WebTestProxyBase::CapturePixelsForPrinting,
- base::Unretained(this),
- callback));
+ base::ThreadTaskRunnerHandle::Get()->PostTask(
+ FROM_HERE, base::Bind(&WebTestProxyBase::CapturePixelsForPrinting,
+ base::Unretained(this), callback));
return;
}

Powered by Google App Engine
This is Rietveld 408576698