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

Unified Diff: ash/wm/power_button_controller.cc

Issue 2575183002: chromeos: Tie tablet power button to --enable-touchview. (Closed)
Patch Set: Created 4 years 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: ash/wm/power_button_controller.cc
diff --git a/ash/wm/power_button_controller.cc b/ash/wm/power_button_controller.cc
index 9ea85af9688d4384cadcfba8d1538db73de06d38..3dd54fa2ff65544efdffa071b03b83627f727cc7 100644
--- a/ash/wm/power_button_controller.cc
+++ b/ash/wm/power_button_controller.cc
@@ -44,8 +44,9 @@ PowerButtonController::PowerButtonController(LockStateController* controller)
#if defined(OS_CHROMEOS)
chromeos::DBusThreadManager::Get()->GetPowerManagerClient()->AddObserver(
this);
- if (base::CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kAshEnableTabletPowerButton)) {
+ if (base::CommandLine::ForCurrentProcess()->HasSwitch(kAshEnableTouchView) ||
+ base::CommandLine::ForCurrentProcess()->HasSwitch(
+ kAshEnableTouchViewTesting)) {
tablet_controller_.reset(
new TabletPowerButtonController(lock_state_controller_));
}

Powered by Google App Engine
This is Rietveld 408576698