summaryrefslogtreecommitdiffstats
path: root/chrome/browser/safe_browsing
diff options
context:
space:
mode:
authorgspencer@chromium.org <gspencer@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-01 19:28:34 +0000
committergspencer@chromium.org <gspencer@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-01 19:28:34 +0000
commit0fbd7033b5818725b4e956b93193f20f94fd698f (patch)
treeb8f8b1bfda547db52d90b7afaa79eab3989a2ddd /chrome/browser/safe_browsing
parent68228cdf78bbc4abf2dbef712693ec8ee59d1f64 (diff)
downloadchromium_src-0fbd7033b5818725b4e956b93193f20f94fd698f.zip
chromium_src-0fbd7033b5818725b4e956b93193f20f94fd698f.tar.gz
chromium_src-0fbd7033b5818725b4e956b93193f20f94fd698f.tar.bz2
Fixing AutoReset to be a template.
I've run into a couple of times this week when I needed one of these, for two different types besides bool. Time to fix the TODO. TEST=trybots FTW, and built locally. BUG=none Review URL: http://codereview.chromium.org/2394001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48644 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/safe_browsing')
-rw-r--r--chrome/browser/safe_browsing/safe_browsing_database_bloom.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/safe_browsing/safe_browsing_database_bloom.cc b/chrome/browser/safe_browsing/safe_browsing_database_bloom.cc
index 8acda7c..802bbd2 100644
--- a/chrome/browser/safe_browsing/safe_browsing_database_bloom.cc
+++ b/chrome/browser/safe_browsing/safe_browsing_database_bloom.cc
@@ -63,7 +63,7 @@ bool SafeBrowsingDatabaseBloom::ResetDatabase() {
if (performing_reset_)
return false; // Don't recurse.
- AutoReset auto_reset_performing_reset(&performing_reset_, true);
+ AutoReset<bool> auto_reset_performing_reset(&performing_reset_, true);
// Delete files on disk.
bool rv = Close();