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

Unified Diff: ash/mus/window_manager.cc

Issue 2906873003: chromeos: turn on simplified display management for mash (Closed)
Patch Set: bug refs Created 3 years, 6 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 | « ash/mus/screen_mus_unittest.cc ('k') | ash/mus/window_manager_application.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/mus/window_manager.cc
diff --git a/ash/mus/window_manager.cc b/ash/mus/window_manager.cc
index c9fad8d69670c79959424cdec140b619f65d7ab1..c2f1501cd60bd73564e28ad0340310d38aa0ae14 100644
--- a/ash/mus/window_manager.cc
+++ b/ash/mus/window_manager.cc
@@ -126,10 +126,8 @@ void WindowManager::Init(
DCHECK_EQ(nullptr, ash::Shell::window_tree_client());
ash::Shell::set_window_tree_client(window_tree_client_.get());
- // TODO(sky): remove and use MUS code. This should really be
- // ShouldEnableSimplifiedDisplayManagement(), but as ShellPort hasn't been
- // created yet it can't be used here.
- if (config_ == Config::MASH) {
+ // TODO(sky): remove and use MUS code.
+ if (!Shell::ShouldEnableSimplifiedDisplayManagement(config_)) {
// |connector_| is null in some tests.
if (connector_)
connector_->BindInterface(ui::mojom::kServiceName, &display_controller_);
@@ -339,7 +337,7 @@ void WindowManager::SetWindowManagerClient(aura::WindowManagerClient* client) {
}
void WindowManager::OnWmConnected() {
- if (config_ != Config::MUS)
+ if (!Shell::ShouldEnableSimplifiedDisplayManagement(config_))
return;
CreateShell(nullptr);
« no previous file with comments | « ash/mus/screen_mus_unittest.cc ('k') | ash/mus/window_manager_application.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698