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

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: corrected small code oversight 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
« no previous file with comments | « services/ui/service.cc ('k') | ui/ozone/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)
« no previous file with comments | « services/ui/service.cc ('k') | ui/ozone/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698