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

Unified Diff: chrome/browser/ui/views/toolbar/wrench_menu.cc

Issue 673063002: Fix "#if defined(DEBUG)" statements (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Peter's Created 6 years, 2 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
« no previous file with comments | « chrome/browser/ui/views/toolbar/browser_actions_container.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/toolbar/wrench_menu.cc
diff --git a/chrome/browser/ui/views/toolbar/wrench_menu.cc b/chrome/browser/ui/views/toolbar/wrench_menu.cc
index d0c2cfd951a6af70aa5afca4f58187470975bdf7..acb8976b8e64e60f441277a2c812d55c50163f3d 100644
--- a/chrome/browser/ui/views/toolbar/wrench_menu.cc
+++ b/chrome/browser/ui/views/toolbar/wrench_menu.cc
@@ -816,12 +816,12 @@ void WrenchMenu::Init(ui::MenuModel* model) {
// so we get the taller menu style.
PopulateMenu(root_, model);
-#if defined(DEBUG)
+#if !defined(NDEBUG)
// Verify that the reserved command ID's for bookmarks menu are not used.
- for (int i = WrenchMenuModel:kMinBookmarkCommandId;
+ for (int i = WrenchMenuModel::kMinBookmarkCommandId;
i <= WrenchMenuModel::kMaxBookmarkCommandId; ++i)
DCHECK(command_id_to_entry_.find(i) == command_id_to_entry_.end());
-#endif // defined(DEBUG)
+#endif // !defined(NDEBUG)
int32 types = views::MenuRunner::HAS_MNEMONICS;
if (for_drop()) {
« no previous file with comments | « chrome/browser/ui/views/toolbar/browser_actions_container.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698