summaryrefslogtreecommitdiffstats
path: root/views/focus
diff options
context:
space:
mode:
Diffstat (limited to 'views/focus')
-rw-r--r--views/focus/focus_manager.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/views/focus/focus_manager.cc b/views/focus/focus_manager.cc
index bab4922..04258bf 100644
--- a/views/focus/focus_manager.cc
+++ b/views/focus/focus_manager.cc
@@ -638,10 +638,8 @@ void FocusManager::RegisterAccelerator(
const Accelerator& accelerator,
AcceleratorTarget* target) {
AcceleratorTargetList& targets = accelerators_[accelerator];
- // TODO(yutak): View::RegisterAccelerators() seems to register the same target
- // multiple times. Should uncomment below after View is fixed.
- // DCHECK(std::find(targets.begin(), targets.end(), target) == targets.end())
- // << "Registering the same target multiple times";
+ DCHECK(std::find(targets.begin(), targets.end(), target) == targets.end())
+ << "Registering the same target multiple times";
targets.push_front(target);
}