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

Unified Diff: ui/views/view.cc

Issue 10377114: Remove some more OS_CHROMEOS from browser. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 7 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: ui/views/view.cc
===================================================================
--- ui/views/view.cc (revision 137127)
+++ ui/views/view.cc (working copy)
@@ -862,11 +862,10 @@
if (!accelerators_.get())
accelerators_.reset(new std::vector<ui::Accelerator>());
- DCHECK(std::find(accelerators_->begin(), accelerators_->end(), accelerator) ==
- accelerators_->end())
- << "Registering the same accelerator multiple times";
-
- accelerators_->push_back(accelerator);
+ if (std::find(accelerators_->begin(), accelerators_->end(), accelerator) ==
+ accelerators_->end()) {
+ accelerators_->push_back(accelerator);
+ }
RegisterPendingAccelerators();
}

Powered by Google App Engine
This is Rietveld 408576698