| Index: chrome/service/cloud_print/printer_job_handler_unittest.cc
|
| diff --git a/chrome/service/cloud_print/printer_job_handler_unittest.cc b/chrome/service/cloud_print/printer_job_handler_unittest.cc
|
| index 58b4ed8b1cf0e69048c5e37bc632bf672796aa99..d8b27e00c87a5a22305b22942d5fb6a5e1ef36e9 100644
|
| --- a/chrome/service/cloud_print/printer_job_handler_unittest.cc
|
| +++ b/chrome/service/cloud_print/printer_job_handler_unittest.cc
|
| @@ -11,6 +11,7 @@
|
| #include "base/md5.h"
|
| #include "base/memory/ref_counted.h"
|
| #include "base/message_loop/message_loop.h"
|
| +#include "base/run_loop.h"
|
| #include "base/single_thread_task_runner.h"
|
| #include "base/strings/stringprintf.h"
|
| #include "base/threading/thread_task_runner_handle.h"
|
| @@ -618,7 +619,7 @@ void PrinterJobHandlerTest::BeginTest(int timeout_seconds) {
|
| base::MessageLoop::current()),
|
| base::TimeDelta::FromSeconds(timeout_seconds));
|
|
|
| - base::MessageLoop::current()->Run();
|
| + base::RunLoop().Run();
|
| }
|
|
|
| void PrinterJobHandlerTest::SendCapsAndDefaults(
|
| @@ -638,7 +639,7 @@ void PrinterJobHandlerTest::TearDown() {
|
| }
|
|
|
| void PrinterJobHandlerTest::IdleOut() {
|
| - base::MessageLoop::current()->RunUntilIdle();
|
| + base::RunLoop().RunUntilIdle();
|
| }
|
|
|
| MockPrintServerWatcher::MockPrintServerWatcher() : delegate_(NULL) {
|
|
|