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; |
} |