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

Unified Diff: services/ui/display/platform_screen_ozone.cc

Issue 2503923003: Demonstrate external-window-mode in mus-demo (Closed)
Patch Set: Move CommandLine into OnStart Created 4 years, 1 month 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: services/ui/display/platform_screen_ozone.cc
diff --git a/services/ui/display/platform_screen_ozone.cc b/services/ui/display/platform_screen_ozone.cc
index 3a9433d18359257a14f0e81140c148a1920dd9c7..856064fe18de702c961552a37602b1ea273bdea9 100644
--- a/services/ui/display/platform_screen_ozone.cc
+++ b/services/ui/display/platform_screen_ozone.cc
@@ -18,6 +18,7 @@
#include "ui/display/types/native_display_delegate.h"
#include "ui/gfx/geometry/rect.h"
#include "ui/ozone/public/ozone_platform.h"
+#include "ui/ozone/public/ozone_switches.h"
namespace display {
namespace {
@@ -82,6 +83,10 @@ void PlatformScreenOzone::Init(PlatformScreenDelegate* delegate) {
native_display_delegate->GetFakeDisplayController();
}
+ if (base::CommandLine::ForCurrentProcess()->HasSwitch(
rjkroege 2016/11/21 21:19:11 This doesn't seem like the right approach. The cod
Tom (Use chromium acct) 2016/11/22 02:48:15 Done.
+ switches::kExternalWindowMode))
+ return;
+
// We want display configuration to happen even off device to keep the control
// flow similar.
display_configurator_.set_configure_display(true);

Powered by Google App Engine
This is Rietveld 408576698