Index: extensions/shell/test/shell_test.cc |
diff --git a/extensions/shell/test/shell_test.cc b/extensions/shell/test/shell_test.cc |
index 96ebb2a69441fd8adaee050cd2cafb93f0d97113..549e24ab61079e8ca8932c4716dfb11dc94ced5b 100644 |
--- a/extensions/shell/test/shell_test.cc |
+++ b/extensions/shell/test/shell_test.cc |
@@ -9,6 +9,7 @@ |
#include "base/files/file_path.h" |
#include "base/logging.h" |
#include "base/path_service.h" |
+#include "base/run_loop.h" |
#include "build/build_config.h" |
#include "components/version_info/version_info.h" |
#include "content/public/common/content_switches.h" |
@@ -57,7 +58,7 @@ void AppShellTest::SetUpOnMainThread() { |
} |
void AppShellTest::RunTestOnMainThreadLoop() { |
- base::MessageLoopForUI::current()->RunUntilIdle(); |
+ base::RunLoop().RunUntilIdle(); |
gab
2016/08/05 01:09:57
Why didn't the script add a DCHECK IsMessageLoopFo
fdoray
2016/08/05 16:10:36
Done. I added these DCHECKs manually.
|
SetUpOnMainThread(); |