summaryrefslogtreecommitdiffstats
path: root/chrome_frame/bho.h
diff options
context:
space:
mode:
authortommi@chromium.org <tommi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-13 20:05:21 +0000
committertommi@chromium.org <tommi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-13 20:05:21 +0000
commit87b1942db3bfe2dd9d3a07f15c7abd854ddd1785 (patch)
tree2f093b5e70f1928723938e185a6caa3f00630e80 /chrome_frame/bho.h
parent009557c3a5dabcdbf8dd55787611ddd651399f4d (diff)
downloadchromium_src-87b1942db3bfe2dd9d3a07f15c7abd854ddd1785.zip
chromium_src-87b1942db3bfe2dd9d3a07f15c7abd854ddd1785.tar.gz
chromium_src-87b1942db3bfe2dd9d3a07f15c7abd854ddd1785.tar.bz2
Fix a race condition in InitializeAndPatchProtocolsIfNeeded as discovered by MAD.
TEST=Should fix the issue MAD saw when starting up and tearing down the host browser in quick succession. Please see bug description. BUG=27641 Review URL: http://codereview.chromium.org/387049 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31935 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome_frame/bho.h')
-rw-r--r--chrome_frame/bho.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/chrome_frame/bho.h b/chrome_frame/bho.h
index b5b6ec5..2838fec 100644
--- a/chrome_frame/bho.h
+++ b/chrome_frame/bho.h
@@ -30,7 +30,10 @@ class PatchHelper {
return state_;
}
- void InitializeAndPatchProtocolsIfNeeded();
+ // Returns true if protocols were patched, false if patching has already
+ // been done.
+ bool InitializeAndPatchProtocolsIfNeeded();
+
void PatchBrowserService(IBrowserService* p);
void UnpatchIfNeeded();
protected: