diff options
author | ananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-24 00:17:23 +0000 |
---|---|---|
committer | ananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-24 00:17:23 +0000 |
commit | b07408332337cd6f10b31e87cbed0886e872fa93 (patch) | |
tree | 5c4528028ebed3c28333f2643993cfecf8fb0de6 /chrome_frame/chrome_frame_histograms.h | |
parent | 18597e6c4c13dba7da60255912572a6c133c455d (diff) | |
download | chromium_src-b07408332337cd6f10b31e87cbed0886e872fa93.zip chromium_src-b07408332337cd6f10b31e87cbed0886e872fa93.tar.gz chromium_src-b07408332337cd6f10b31e87cbed0886e872fa93.tar.bz2 |
The function to send out ChromeFrame histograms can be invoked from multiple threads in IE.
This causes the histogram snapshots to get corrupted.
Fix is to synchronize access to the function which gathers these histograms.
Fixes bugs http://code.google.com/p/chromium/issues/detail?id=36500
http://code.google.com/p/chromium/issues/detail?id=36510
Bug=36500,36510
Review URL: http://codereview.chromium.org/657023
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39817 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome_frame/chrome_frame_histograms.h')
-rw-r--r-- | chrome_frame/chrome_frame_histograms.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/chrome_frame/chrome_frame_histograms.h b/chrome_frame/chrome_frame_histograms.h index 03aaab5..0e7e600 100644 --- a/chrome_frame/chrome_frame_histograms.h +++ b/chrome_frame/chrome_frame_histograms.h @@ -48,6 +48,9 @@ class ChromeFrameHistogramSnapshots { // histogram) so that we can send only the delta with the next log. LoggedSampleMap logged_samples_; + // Synchronizes the histogram gathering operation. + Lock lock_; + DISALLOW_COPY_AND_ASSIGN(ChromeFrameHistogramSnapshots); }; |