| Index: ash/shell.cc
|
| diff --git a/ash/shell.cc b/ash/shell.cc
|
| index 7b809cb0f826ca6e76cfd9f135549ea51f5c7986..8ce250af2a3101f6ca2af217d90bf4fb14a0fb71 100644
|
| --- a/ash/shell.cc
|
| +++ b/ash/shell.cc
|
| @@ -104,7 +104,7 @@
|
| #include "ash/accelerators/nested_dispatcher_controller.h"
|
| #endif
|
|
|
| -#if defined(OS_CHROMEOS)
|
| +#if defined(OS_CHROMEOS) && defined(USE_X11)
|
| #include "ash/ash_constants.h"
|
| #include "ash/display/display_change_observer_x11.h"
|
| #include "ash/display/display_error_dialog.h"
|
| @@ -198,7 +198,7 @@ Shell::Shell(ShellDelegate* delegate)
|
| active_root_window_(NULL),
|
| delegate_(delegate),
|
| activation_client_(NULL),
|
| -#if defined(OS_CHROMEOS)
|
| +#if defined(OS_CHROMEOS) && defined(USE_X11)
|
| output_configurator_(new chromeos::OutputConfigurator()),
|
| #endif // defined(OS_CHROMEOS)
|
| native_cursor_manager_(new AshNativeCursorManager),
|
| @@ -213,7 +213,7 @@ Shell::Shell(ShellDelegate* delegate)
|
| if (!gfx::Screen::GetScreenByType(gfx::SCREEN_TYPE_NATIVE))
|
| gfx::Screen::SetScreenInstance(gfx::SCREEN_TYPE_NATIVE, screen_);
|
| display_controller_.reset(new DisplayController);
|
| -#if defined(OS_CHROMEOS)
|
| +#if defined(OS_CHROMEOS) && defined(USE_X11)
|
| bool is_panel_fitting_disabled =
|
| content::GpuDataManager::GetInstance()->IsFeatureBlacklisted(
|
| content::GPU_FEATURE_TYPE_PANEL_FITTING) ||
|
| @@ -304,7 +304,7 @@ Shell::~Shell() {
|
| // because they might have registered ActivationChangeObserver.
|
| activation_controller_.reset();
|
|
|
| -#if defined(OS_CHROMEOS)
|
| +#if defined(OS_CHROMEOS) && defined(USE_X11)
|
| if (display_change_observer_.get())
|
| output_configurator_->RemoveObserver(display_change_observer_.get());
|
| if (output_configurator_animation_.get())
|
| @@ -415,7 +415,7 @@ bool Shell::IsLauncherPerDisplayEnabled() {
|
|
|
| void Shell::Init() {
|
| delegate_->PreInit();
|
| -#if defined(OS_CHROMEOS)
|
| +#if defined(OS_CHROMEOS) && defined(USE_X11)
|
| output_configurator_animation_.reset(
|
| new internal::OutputConfiguratorAnimation());
|
| output_configurator_->AddObserver(output_configurator_animation_.get());
|
|
|