diff options
author | jcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-04 19:38:30 +0000 |
---|---|---|
committer | jcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-04 19:38:30 +0000 |
commit | a3153c47d3b5308e7a55c0924a0baa1a6e02dcd0 (patch) | |
tree | b37c85641aef8df14c732e4b187444e040a11555 /chrome/browser/plugin_process_host.cc | |
parent | a93e517bfe25f11b2c4cc7d69f386424b93a2efa (diff) | |
download | chromium_src-a3153c47d3b5308e7a55c0924a0baa1a6e02dcd0.zip chromium_src-a3153c47d3b5308e7a55c0924a0baa1a6e02dcd0.tar.gz chromium_src-a3153c47d3b5308e7a55c0924a0baa1a6e02dcd0.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
Note: this CL was previously committed and reverted because it broke the sandbox integration module.
Review URL: http://codereview.chromium.org/21032
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9161 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: |