diff options
author | jcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-03 23:20:59 +0000 |
---|---|---|
committer | jcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-03 23:20:59 +0000 |
commit | 0dea0a65b4cabd5910fb8747a0cb3935a27e6ec5 (patch) | |
tree | eaf31b951ecea22f0278d02b1f73edc7c99fc967 /chrome/browser/plugin_process_host.cc | |
parent | fb0a00f524b27ffe28a830cc44ce8135a41cdaad (diff) | |
download | chromium_src-0dea0a65b4cabd5910fb8747a0cb3935a27e6ec5.zip chromium_src-0dea0a65b4cabd5910fb8747a0cb3935a27e6ec5.tar.gz chromium_src-0dea0a65b4cabd5910fb8747a0cb3935a27e6ec5.tar.bz2 |
This CL adds macro used to track the creation and destruction
of HWNDs, in an attempt to detect potential double-delete.
A double-delete of a HWND might be responsible for the crasher
http://crbug.com/4714
Review URL: http://codereview.chromium.org/21018
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9109 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/plugin_process_host.cc')
-rw-r--r-- | chrome/browser/plugin_process_host.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/chrome/browser/plugin_process_host.cc b/chrome/browser/plugin_process_host.cc index 0e06e3e..feab679 100644 --- a/chrome/browser/plugin_process_host.cc +++ b/chrome/browser/plugin_process_host.cc @@ -14,6 +14,7 @@ #include "base/path_service.h" #include "base/process_util.h" #include "base/thread.h" +#include "base/win_util.h" #include "chrome/browser/browser_process.h" #include "chrome/browser/chrome_plugin_browsing_context.h" #include "chrome/browser/chrome_thread.h" @@ -351,6 +352,7 @@ class CreateWindowTask : public Task { MAKEINTATOM(window_class), 0, WS_CHILD | WS_CLIPCHILDREN | WS_CLIPSIBLINGS, 0, 0, 0, 0, parent_, 0, GetModuleHandle(NULL), 0); + TRACK_HWND_CREATION(window); PluginProcessHostMsg_CreateWindow::WriteReplyParams( reply_msg_, window); @@ -372,6 +374,7 @@ class DestroyWindowTask : public Task { virtual void Run() { DestroyWindow(window_); + TRACK_HWND_DESTRUCTION(window_); } private: |