Index: ui/base/accelerators/accelerator_manager.cc |
diff --git a/ui/base/accelerators/accelerator_manager.cc b/ui/base/accelerators/accelerator_manager.cc |
index 466b7b745e005a0fb70c583b44554c861d26733c..fad3bf66eebfd288ced3eb05e517c03de3b53e89 100644 |
--- a/ui/base/accelerators/accelerator_manager.cc |
+++ b/ui/base/accelerators/accelerator_manager.cc |
@@ -27,9 +27,9 @@ void AcceleratorManager::Register(const Accelerator& accelerator, |
const bool is_first_target_for_accelerator = targets.empty(); |
// All priority accelerators go to the front of the line. |
- if (priority) { |
+ if (priority == kHighPriority) { |
DCHECK(!accelerators_[accelerator].first) |
- << "Only one _priority_ handler can be registered"; |
+ << "Only one high-priority handler can be registered"; |
targets.push_front(target); |
// Mark that we have a priority accelerator at the front. |
accelerators_[accelerator].first = true; |