| Index: chrome/views/widget_win.cc
|
| ===================================================================
|
| --- chrome/views/widget_win.cc (revision 9063)
|
| +++ chrome/views/widget_win.cc (working copy)
|
| @@ -162,6 +162,8 @@
|
| window_style_, bounds.x(), bounds.y(), bounds.width(),
|
| bounds.height(), parent, NULL, NULL, this);
|
| DCHECK(hwnd_);
|
| + TRACK_HWND_CREATION(hwnd_);
|
| +
|
| // The window procedure should have set the data for us.
|
| DCHECK(win_util::GetWindowUserData(hwnd_) == this);
|
|
|
| @@ -932,6 +934,7 @@
|
| if (!widget->ProcessWindowMessage(window, message, w_param, l_param, result))
|
| result = DefWindowProc(window, message, w_param, l_param);
|
| if (message == WM_NCDESTROY) {
|
| + TRACK_HWND_DESTRUCTION(window);
|
| widget->hwnd_ = NULL;
|
| widget->OnFinalMessage(window);
|
| }
|
|
|