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

Unified Diff: ui/views/corewm/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: 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
Index: ui/views/corewm/input_method_event_filter.cc
diff --git a/ui/views/corewm/input_method_event_filter.cc b/ui/views/corewm/input_method_event_filter.cc
index 56b19402055be619b69c9980408e9bae89e29395..27c6b6e3b57d73a121574410a2d25ce74f9ecf89 100644
--- a/ui/views/corewm/input_method_event_filter.cc
+++ b/ui/views/corewm/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 =
« gpu/command_buffer/tests/gl_shared_resources_unittest.cc ('K') | « ui/gfx/font_list_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698