summaryrefslogtreecommitdiffstats
path: root/base
diff options
context:
space:
mode:
Diffstat (limited to 'base')
-rw-r--r--base/win_util.cc2
1 files changed, 0 insertions, 2 deletions
diff --git a/base/win_util.cc b/base/win_util.cc
index 9b061bf..37fc1ae 100644
--- a/base/win_util.cc
+++ b/base/win_util.cc
@@ -279,8 +279,6 @@ bool Subclass(HWND window, WNDPROC subclass_proc) {
WNDPROC original_handler =
reinterpret_cast<WNDPROC>(GetWindowLongPtr(window, GWLP_WNDPROC));
if (original_handler != subclass_proc) {
- DCHECK(!GetProp(window, kHandlerKey)) << "subclassing a HWND more than "
- "once";
win_util::SetWindowProc(window, subclass_proc);
SetProp(window, kHandlerKey, original_handler);
return true;