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..8cf25db0280ea558e392940bfb75bb07fff300a4 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" |
#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::ThreadTaskRunnerHandle::Get()->PostDelayedTask( |
+ FROM_HERE, base::MessageLoop::QuitClosure(), |
base::TimeDelta::FromMilliseconds(20)); |
content::RunMessageLoop(); |
msw
2015/06/10 00:12:58
nit: Is this still correct?
Sami
2015/06/10 12:35:34
Yes, it's still posting to the message loop for th
|
} |