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

Unified Diff: ui/wm/core/input_method_event_filter.cc

Issue 195973002: Change DCHECK_IS_ON() to DCHECK_IS_ON (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Keep a comment Created 6 years, 9 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 | « ui/gfx/font_list_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/wm/core/input_method_event_filter.cc
diff --git a/ui/wm/core/input_method_event_filter.cc b/ui/wm/core/input_method_event_filter.cc
index d97bf03a2b5b4d7d0b89626f18d10bfcab9efd50..7b8485653dfa9d082261b1370d20865ad3945ac8 100644
--- a/ui/wm/core/input_method_event_filter.cc
+++ b/ui/wm/core/input_method_event_filter.cc
@@ -61,8 +61,7 @@ void InputMethodEventFilter::OnKeyEvent(ui::KeyEvent* event) {
bool InputMethodEventFilter::DispatchKeyEventPostIME(
const ui::KeyEvent& event) {
#if defined(OS_WIN)
- if (DCHECK_IS_ON() && event.HasNativeEvent())
- DCHECK_NE(event.native_event().message, static_cast<UINT>(WM_CHAR));
+ DCHECK(!event.HasNativeEvent() || event.native_event().message != WM_CHAR);
#endif
ui::TranslatedKeyEvent aura_event(event);
ui::EventDispatchDetails details =
« no previous file with comments | « ui/gfx/font_list_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698