| Index: content/shell/renderer/test_runner/web_test_proxy.cc
|
| diff --git a/content/shell/renderer/test_runner/web_test_proxy.cc b/content/shell/renderer/test_runner/web_test_proxy.cc
|
| index 27abd2b2867627b8072093678f39a86ac527dd28..525cca83982e9edea9d3c37644f7986de1663ccf 100644
|
| --- a/content/shell/renderer/test_runner/web_test_proxy.cc
|
| +++ b/content/shell/renderer/test_runner/web_test_proxy.cc
|
| @@ -8,10 +8,13 @@
|
|
|
| #include "base/callback_helpers.h"
|
| #include "base/command_line.h"
|
| +#include "base/location.h"
|
| #include "base/logging.h"
|
| +#include "base/single_thread_task_runner.h"
|
| #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 "content/shell/renderer/test_runner/accessibility_controller.h"
|
| #include "content/shell/renderer/test_runner/event_sender.h"
|
| @@ -619,11 +622,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;
|
| }
|
|
|
|
|