| Index: chrome/test/ppapi/ppapi_test.cc
|
| diff --git a/chrome/test/ppapi/ppapi_test.cc b/chrome/test/ppapi/ppapi_test.cc
|
| index 48d758a9258a3fe0316f869b35b7d5478f5d315f..6e9fc0356049e87ac8530a1bf920cc2be2cd61ff 100644
|
| --- a/chrome/test/ppapi/ppapi_test.cc
|
| +++ b/chrome/test/ppapi/ppapi_test.cc
|
| @@ -6,9 +6,12 @@
|
|
|
| #include "base/command_line.h"
|
| #include "base/files/file_util.h"
|
| +#include "base/location.h"
|
| #include "base/path_service.h"
|
| +#include "base/single_thread_task_runner.h"
|
| #include "base/strings/string_util.h"
|
| #include "base/strings/stringprintf.h"
|
| +#include "base/thread_task_runner_handle.h"
|
| #include "chrome/browser/chrome_notification_types.h"
|
| #include "chrome/browser/infobars/infobar_service.h"
|
| #include "chrome/browser/profiles/profile.h"
|
| @@ -93,9 +96,9 @@ void PPAPITestBase::InfoBarObserver::Observe(
|
| // It's not safe to remove the infobar here, since other observers (e.g. the
|
| // InfoBarContainer) may still need to access it. Instead, post a task to
|
| // do all necessary infobar manipulation as soon as this call stack returns.
|
| - base::MessageLoop::current()->PostTask(
|
| - FROM_HERE, base::Bind(&InfoBarObserver::VerifyInfoBarState,
|
| - base::Unretained(this)));
|
| + base::ThreadTaskRunnerHandle::Get()->PostTask(
|
| + FROM_HERE,
|
| + base::Bind(&InfoBarObserver::VerifyInfoBarState, base::Unretained(this)));
|
| }
|
|
|
| void PPAPITestBase::InfoBarObserver::VerifyInfoBarState() {
|
|
|