diff options
Diffstat (limited to 'chrome/browser')
-rw-r--r-- | chrome/browser/plugin_process_host.cc | 3 | ||||
-rw-r--r-- | chrome/browser/renderer_host/render_widget_host_view_win.cc | 2 |
2 files changed, 5 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: diff --git a/chrome/browser/renderer_host/render_widget_host_view_win.cc b/chrome/browser/renderer_host/render_widget_host_view_win.cc index 2c19e7e..f4c27dd 100644 --- a/chrome/browser/renderer_host/render_widget_host_view_win.cc +++ b/chrome/browser/renderer_host/render_widget_host_view_win.cc @@ -396,6 +396,7 @@ LRESULT RenderWidgetHostViewWin::OnCreate(CREATESTRUCT* create_struct) { // Call the WM_INPUTLANGCHANGE message handler to initialize the input locale // of a browser process. OnInputLangChange(0, 0); + TRACK_HWND_CREATION(m_hWnd); return 0; } @@ -413,6 +414,7 @@ void RenderWidgetHostViewWin::OnActivate(UINT action, BOOL minimized, void RenderWidgetHostViewWin::OnDestroy() { ResetTooltip(); TrackMouseLeave(false); + TRACK_HWND_DESTRUCTION(m_hWnd); } void RenderWidgetHostViewWin::OnPaint(HDC dc) { |