summaryrefslogtreecommitdiffstats
path: root/chrome_frame/bho.cc
diff options
context:
space:
mode:
authorslightlyoff@chromium.org <slightlyoff@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-26 23:54:34 +0000
committerslightlyoff@chromium.org <slightlyoff@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-26 23:54:34 +0000
commit11903b0dd26e51563e0645af2e900649ac028408 (patch)
treee544522a8295325407938d998b09a8dcc996ea03 /chrome_frame/bho.cc
parent5607c4eb42ea5b5f153b7dfcbe0dddd08cf1aa4e (diff)
downloadchromium_src-11903b0dd26e51563e0645af2e900649ac028408.zip
chromium_src-11903b0dd26e51563e0645af2e900649ac028408.tar.gz
chromium_src-11903b0dd26e51563e0645af2e900649ac028408.tar.bz2
Fixes GCF perf tests in prep for re-enabling them on the bots.
BUG=36734 TEST=build/run chrome_frame_perftests.exe, note that they all run now Review URL: http://codereview.chromium.org/1433002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@42870 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome_frame/bho.cc')
-rw-r--r--chrome_frame/bho.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/chrome_frame/bho.cc b/chrome_frame/bho.cc
index f685166..5118750 100644
--- a/chrome_frame/bho.cc
+++ b/chrome_frame/bho.cc
@@ -316,9 +316,10 @@ bool PatchHelper::InitializeAndPatchProtocolsIfNeeded() {
_pAtlModule->m_csStaticDataInitAndTypeInfo.Lock();
if (state_ == UNKNOWN) {
- // If we're going to start patching things, we'd better make sure that we
- // stick around for ever more:
- PinModule();
+ // If we're going to start patching things for reals, we'd better make sure
+ // that we stick around for ever more:
+ if (!IsUnpinnedMode())
+ PinModule();
HttpNegotiatePatch::Initialize();