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

Unified Diff: ash/wm/power_button_controller.cc

Issue 2575183002: chromeos: Tie tablet power button to --enable-touchview. (Closed)
Patch Set: add switch namespaces :-/ 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..8038dec9773b09ea2cff8642cdfad5d6debaad7e 100644
--- a/ash/wm/power_button_controller.cc
+++ b/ash/wm/power_button_controller.cc
@@ -45,7 +45,9 @@ PowerButtonController::PowerButtonController(LockStateController* controller)
chromeos::DBusThreadManager::Get()->GetPowerManagerClient()->AddObserver(
this);
if (base::CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kAshEnableTabletPowerButton)) {
+ switches::kAshEnableTouchView) ||
+ base::CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kAshEnableTouchViewTesting)) {
tablet_controller_.reset(
new TabletPowerButtonController(lock_state_controller_));
}

Powered by Google App Engine
This is Rietveld 408576698