Chromium Code Reviews| Index: chrome/browser/ui/webui/constrained_web_dialog_ui_browsertest.cc |
| diff --git a/chrome/browser/ui/webui/constrained_web_dialog_ui_browsertest.cc b/chrome/browser/ui/webui/constrained_web_dialog_ui_browsertest.cc |
| index d9f4f96c279be5a1c82b23494bae1cbd9867a744..6f1b47290a88d171cde020993fd870a08f1cada4 100644 |
| --- a/chrome/browser/ui/webui/constrained_web_dialog_ui_browsertest.cc |
| +++ b/chrome/browser/ui/webui/constrained_web_dialog_ui_browsertest.cc |
| @@ -3,8 +3,11 @@ |
| // found in the LICENSE file. |
| #include "base/callback.h" |
| +#include "base/location.h" |
| +#include "base/single_thread_task_runner.h" |
|
msw
2015/06/12 00:31:21
nit: remove sttr and ttrh headers.
Sami
2015/06/12 10:56:22
Done.
|
| #include "base/strings/stringprintf.h" |
| #include "base/strings/utf_string_conversions.h" |
| +#include "base/thread_task_runner_handle.h" |
| #include "chrome/browser/profiles/profile.h" |
| #include "chrome/browser/ui/browser.h" |
| #include "chrome/browser/ui/tabs/tab_strip_model.h" |
| @@ -75,9 +78,8 @@ class ConstrainedWebDialogBrowserTest : public InProcessBrowserTest { |
| return false; |
| } |
| - base::MessageLoop::current()->PostDelayedTask( |
| - FROM_HERE, |
| - base::MessageLoop::QuitClosure(), |
| + base::MessageLoop::current()->task_runner()->PostDelayedTask( |
| + FROM_HERE, base::MessageLoop::QuitClosure(), |
| base::TimeDelta::FromMilliseconds(20)); |
| content::RunMessageLoop(); |
| } |