Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(543)

Unified Diff: webkit/glue/plugins/webplugin_delegate_impl.cc

Issue 21018: Adding tracking of HWND creation/destruction (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webkit/glue/plugins/webplugin_delegate_impl.cc
===================================================================
--- webkit/glue/plugins/webplugin_delegate_impl.cc (revision 9063)
+++ webkit/glue/plugins/webplugin_delegate_impl.cc (working copy)
@@ -13,6 +13,7 @@
#include "base/message_loop.h"
#include "base/stats_counters.h"
#include "base/string_util.h"
+#include "base/win_util.h"
#include "webkit/default_plugin/plugin_impl.h"
#include "webkit/glue/glue_util.h"
#include "webkit/glue/webplugin.h"
@@ -201,6 +202,7 @@
WebPluginDelegateImpl::~WebPluginDelegateImpl() {
if (::IsWindow(dummy_window_for_activation_)) {
::DestroyWindow(dummy_window_for_activation_);
+ TRACK_HWND_DESTRUCTION(dummy_window_for_activation_);
}
DestroyInstance();
@@ -447,6 +449,7 @@
0,
GetModuleHandle(NULL),
0);
+ TRACK_HWND_CREATION(windowed_handle_);
if (windowed_handle_ == 0)
return false;
@@ -506,6 +509,7 @@
}
DestroyWindow(windowed_handle_);
+ TRACK_HWND_DESTRUCTION(windowed_handle_);
windowed_handle_ = 0;
}
}
@@ -658,6 +662,7 @@
0,
GetModuleHandle(NULL),
0);
+ TRACK_HWND_CREATION(dummy_window_for_activation_);
if (dummy_window_for_activation_ == 0)
return false;

Powered by Google App Engine
This is Rietveld 408576698