summaryrefslogtreecommitdiffstats
path: root/chrome_frame/vtable_patch_manager.cc
diff options
context:
space:
mode:
authortommi@chromium.org <tommi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-02 13:39:50 +0000
committertommi@chromium.org <tommi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-02 13:39:50 +0000
commitec18ca6778afde54d02f109b86694eabf8e3d6a5 (patch)
treeea5b10ab16b81e4d3d873962a8ee8c817a6d3a00 /chrome_frame/vtable_patch_manager.cc
parent421fd2748b0648e54fe3b6ae8fd0d75faffe76f8 (diff)
downloadchromium_src-ec18ca6778afde54d02f109b86694eabf8e3d6a5.zip
chromium_src-ec18ca6778afde54d02f109b86694eabf8e3d6a5.tar.gz
chromium_src-ec18ca6778afde54d02f109b86694eabf8e3d6a5.tar.bz2
Pin the DLL if we make any patches instead of doing it from the Bho that does not apply the patches itself.
TEST=There should be no changes but we were seeing some potential problems in house with other proprietary browser extensions. BUG=none Review URL: http://codereview.chromium.org/3359001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@58350 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome_frame/vtable_patch_manager.cc')
-rw-r--r--chrome_frame/vtable_patch_manager.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/chrome_frame/vtable_patch_manager.cc b/chrome_frame/vtable_patch_manager.cc
index 10852ee..9f60d3a 100644
--- a/chrome_frame/vtable_patch_manager.cc
+++ b/chrome_frame/vtable_patch_manager.cc
@@ -14,6 +14,7 @@
#include "base/scoped_ptr.h"
#include "chrome_frame/function_stub.h"
+#include "chrome_frame/utils.h"
namespace vtable_patch {
@@ -144,6 +145,7 @@ HRESULT PatchInterfaceMethods(void* unknown, MethodPatchInfo* patches) {
} else {
// Success, save the stub we created.
it->stub_ = stub;
+ PinModule();
}
}