summaryrefslogtreecommitdiffstats
path: root/chrome/browser/host_zoom_map.cc
diff options
context:
space:
mode:
authorpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-30 02:42:39 +0000
committerpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-30 02:42:39 +0000
commit629a5cd1b524d9677ec217c37e9bcf97e66f4d84 (patch)
tree20cf9ce563eba9377572cffe93b6cf6eea037efc /chrome/browser/host_zoom_map.cc
parentef8101ae22bbdf3d8dca519c5b01e08e3e42190e (diff)
downloadchromium_src-629a5cd1b524d9677ec217c37e9bcf97e66f4d84.zip
chromium_src-629a5cd1b524d9677ec217c37e9bcf97e66f4d84.tar.gz
chromium_src-629a5cd1b524d9677ec217c37e9bcf97e66f4d84.tar.bz2
One more place I forgot to lock.
TBR=darin BUG=none TEST=none Review URL: http://codereview.chromium.org/557068 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@37602 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/host_zoom_map.cc')
-rw-r--r--chrome/browser/host_zoom_map.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/chrome/browser/host_zoom_map.cc b/chrome/browser/host_zoom_map.cc
index 88afb92..a60bf97 100644
--- a/chrome/browser/host_zoom_map.cc
+++ b/chrome/browser/host_zoom_map.cc
@@ -65,7 +65,11 @@ void HostZoomMap::SetZoomLevel(const std::string& host, int level) {
void HostZoomMap::ResetToDefaults() {
DCHECK(ChromeThread::CurrentlyOn(ChromeThread::UI));
- host_zoom_levels_.clear();
+ {
+ AutoLock auto_lock(lock_);
+ host_zoom_levels_.clear();
+ }
+
profile_->GetPrefs()->ClearPref(prefs::kPerHostZoomLevels);
}