diff options
Diffstat (limited to 'ash/wm/overview/window_selector_controller.cc')
-rw-r--r-- | ash/wm/overview/window_selector_controller.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ash/wm/overview/window_selector_controller.cc b/ash/wm/overview/window_selector_controller.cc index df14d27..69ad590 100644 --- a/ash/wm/overview/window_selector_controller.cc +++ b/ash/wm/overview/window_selector_controller.cc @@ -6,6 +6,7 @@ #include <vector> +#include "ash/ash_switches.h" #include "ash/metrics/user_metrics_recorder.h" #include "ash/root_window_controller.h" #include "ash/session/session_state_delegate.h" @@ -15,12 +16,15 @@ #include "ash/wm/overview/window_selector.h" #include "ash/wm/window_state.h" #include "ash/wm/window_util.h" +#include "base/command_line.h" #include "base/metrics/histogram.h" #include "ui/aura/window.h" namespace ash { -WindowSelectorController::WindowSelectorController() { +WindowSelectorController::WindowSelectorController() + : swipe_to_close_disabled_(base::CommandLine::ForCurrentProcess()-> + HasSwitch(switches::kAshDisableSwipeToCloseInOverviewMode)) { } WindowSelectorController::~WindowSelectorController() { |