summaryrefslogtreecommitdiffstats
path: root/chrome/browser/history/text_database_manager.cc
diff options
context:
space:
mode:
authorpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-02 20:40:56 +0000
committerpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-02 20:40:56 +0000
commiteeb090c9cb78b3f4808ca5479c1ca8cf62082bee (patch)
treedb6d2d900e8732c3d57cb434c3a677b061f362f1 /chrome/browser/history/text_database_manager.cc
parentc60d3a08ee8d9608602808339e4b17d4c23fad8d (diff)
downloadchromium_src-eeb090c9cb78b3f4808ca5479c1ca8cf62082bee.zip
chromium_src-eeb090c9cb78b3f4808ca5479c1ca8cf62082bee.tar.gz
chromium_src-eeb090c9cb78b3f4808ca5479c1ca8cf62082bee.tar.bz2
Add a Clear() function to MRUCache. This will be useful in my MemoryPurger class. Technically you can call ShrinkToSize(0), but that's both less clear and slower.
BUG=23400 TEST=none Review URL: http://codereview.chromium.org/257024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27892 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/history/text_database_manager.cc')
-rw-r--r--chrome/browser/history/text_database_manager.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/history/text_database_manager.cc b/chrome/browser/history/text_database_manager.cc
index 868a5d8..149cd72 100644
--- a/chrome/browser/history/text_database_manager.cc
+++ b/chrome/browser/history/text_database_manager.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
+// Copyright (c) 2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -369,7 +369,7 @@ void TextDatabaseManager::DeleteAll() {
InitDBList();
// Close all open databases.
- db_cache_.ShrinkToSize(0);
+ db_cache_.Clear();
// Now go through and delete all the files.
for (DBIdentSet::iterator i = present_databases_.begin();