| Index: ash/shell.cc
|
| diff --git a/ash/shell.cc b/ash/shell.cc
|
| index 314024d96d652627116e233e8772c03f145fa547..864802ad9feef8bb842d6f78656bb4b725c3c1fb 100644
|
| --- a/ash/shell.cc
|
| +++ b/ash/shell.cc
|
| @@ -156,7 +156,6 @@
|
| #include "ui/display/manager/chromeos/default_touch_transform_setter.h"
|
| #include "ui/display/manager/chromeos/display_change_observer.h"
|
| #include "ui/display/manager/chromeos/display_configurator.h"
|
| -#include "ui/display/manager/chromeos/touch_transform_setter.h"
|
| #include "ui/display/manager/display_manager.h"
|
| #include "ui/display/screen.h"
|
| #include "ui/display/types/native_display_delegate.h"
|
| @@ -325,11 +324,6 @@
|
| // static
|
| void Shell::RegisterPrefs(PrefRegistrySimple* registry) {
|
| NightLightController::RegisterPrefs(registry);
|
| -}
|
| -
|
| -// static
|
| -bool Shell::ShouldEnableSimplifiedDisplayManagement() {
|
| - return GetAshConfig() != Config::MASH;
|
| }
|
|
|
| views::NonClientFrameView* Shell::CreateDefaultNonClientFrameView(
|
| @@ -1063,11 +1057,11 @@
|
| // WindowTreeHostManager::InitDisplays()
|
| // since AshTouchTransformController listens on
|
| // WindowTreeHostManager::Observer::OnDisplaysInitialized().
|
| - if (ShouldEnableSimplifiedDisplayManagement()) {
|
| - touch_transformer_controller_ =
|
| - base::MakeUnique<AshTouchTransformController>(
|
| - display_configurator_.get(), display_manager_.get(),
|
| - shell_port_->CreateTouchTransformDelegate());
|
| + // TODO(sky): needs to to work for mus too.
|
| + if (config == Config::CLASSIC) {
|
| + touch_transformer_controller_.reset(new AshTouchTransformController(
|
| + display_configurator_.get(), display_manager_.get(),
|
| + base::MakeUnique<display::DefaultTouchTransformSetter>()));
|
| }
|
|
|
| keyboard_ui_ = shell_port_->CreateKeyboardUI();
|
|
|