Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(27)

Unified Diff: ui/gl/test/run_all_unittests.cc

Issue 2156093004: Use mojo for cursor control in ozone drm (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more proof-reading Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..acc120026507bde8745968f9930271a052010e3e 100644
--- a/ui/gl/test/run_all_unittests.cc
+++ b/ui/gl/test/run_all_unittests.cc
@@ -32,10 +32,9 @@ class GlTestSuite : public base::TestSuite {
#if defined(USE_OZONE)
// 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)

Powered by Google App Engine
This is Rietveld 408576698