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

Unified Diff: components/arc/power/arc_power_bridge.cc

Issue 1527183003: Change mojo enums to be scoped enums in the generated C++ bindings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mojo-binding-equals
Patch Set: Created 4 years, 12 months 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: components/arc/power/arc_power_bridge.cc
diff --git a/components/arc/power/arc_power_bridge.cc b/components/arc/power/arc_power_bridge.cc
index b918147ab1ed5f3a973e44762c2fe8856e00be78..172d8fe0a775e5db379846a36de468eec63e125e 100644
--- a/components/arc/power/arc_power_bridge.cc
+++ b/components/arc/power/arc_power_bridge.cc
@@ -53,11 +53,11 @@ void ArcPowerBridge::OnAcquireDisplayWakeLock(
int wake_lock_id = -1;
switch (type) {
- case DISPLAY_WAKE_LOCK_TYPE_BRIGHT:
+ case DisplayWakeLockType::BRIGHT:
wake_lock_id = controller->AddScreenWakeLock(
chromeos::PowerPolicyController::REASON_OTHER, "ARC");
break;
- case DISPLAY_WAKE_LOCK_TYPE_DIM:
+ case DisplayWakeLockType::DIM:
wake_lock_id = controller->AddDimWakeLock(
chromeos::PowerPolicyController::REASON_OTHER, "ARC");
break;

Powered by Google App Engine
This is Rietveld 408576698