Index: ui/gl/test/run_all_unittests.cc |
diff --git a/ui/gl/test/run_all_unittests.cc b/ui/gl/test/run_all_unittests.cc |
index 5e9b4e372409fdf51334ac743307481dd4003c20..e9e5d961c6f4830b95ca836365328fcdb88f6458 100644 |
--- a/ui/gl/test/run_all_unittests.cc |
+++ b/ui/gl/test/run_all_unittests.cc |
@@ -30,12 +30,12 @@ class GlTestSuite : public base::TestSuite { |
void Initialize() override { |
base::TestSuite::Initialize(); |
#if defined(USE_OZONE) |
+ main_loop_.reset(new base::MessageLoopForUI()); |
// Make Ozone run in single-process mode, where it doesn't expect a GPU |
// process and it spawns and starts its own DRM thread. |
- base::CommandLine::ForCurrentProcess()->AppendSwitch( |
- "mojo-platform-channel-handle"); |
- main_loop_.reset(new base::MessageLoopForUI()); |
- ui::OzonePlatform::InitializeForUI(); |
+ ui::OzonePlatform::InitParams params; |
+ params.single_process = true; |
+ ui::OzonePlatform::InitializeForUI(params); |
#endif |
#if defined(OS_MACOSX) && !defined(OS_IOS) |