Index: ui/views/controls/textfield/textfield.cc |
diff --git a/ui/views/controls/textfield/textfield.cc b/ui/views/controls/textfield/textfield.cc |
index 5b560e4e2025621391f12a0e2c64e2c85b9b8ac7..2243e15f7978cfe4795aa888ed642463a332d315 100644 |
--- a/ui/views/controls/textfield/textfield.cc |
+++ b/ui/views/controls/textfield/textfield.cc |
@@ -445,14 +445,12 @@ void Textfield::ViewHierarchyChanged(bool is_add, View* parent, View* child) { |
UpdateAllProperties(); |
#if defined(OS_WIN) && !defined(USE_AURA) |
- if (!views::Widget::IsPureViews()) { |
- // TODO(beng): remove this once NativeTextfieldWin subclasses |
- // NativeControlWin. This is currently called to perform post-AddChildView |
- // initialization for the wrapper. |
- // |
- // Remove the include for native_textfield_win.h above when you fix this. |
- static_cast<NativeTextfieldWin*>(native_wrapper_)->AttachHack(); |
- } |
+ // TODO(beng): remove this once NativeTextfieldWin subclasses |
+ // NativeControlWin. This is currently called to perform post-AddChildView |
+ // initialization for the wrapper. |
+ // |
+ // Remove the include for native_textfield_win.h above when you fix this. |
+ static_cast<NativeTextfieldWin*>(native_wrapper_)->AttachHack(); |
#endif |
} |
} |