summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions
diff options
context:
space:
mode:
authormichaeln@google.com <michaeln@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-25 23:37:19 +0000
committermichaeln@google.com <michaeln@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-25 23:37:19 +0000
commitab30809a167f60c09bb25c303213cf416db05a8a (patch)
tree1aaad2881475e9f1f6d1f10d301807c7da9e6e15 /chrome/browser/extensions
parentf1b666505ae42a96f2bfd230f40ff3bca8cf283b (diff)
downloadchromium_src-ab30809a167f60c09bb25c303213cf416db05a8a.zip
chromium_src-ab30809a167f60c09bb25c303213cf416db05a8a.tar.gz
chromium_src-ab30809a167f60c09bb25c303213cf416db05a8a.tar.bz2
* Wire up the delete command in the cookie tree UI to actually delete indexedDBs. Also cleaned up some internal structures used by the UI layer.
* Clean up some loose ends around the transition from sqlite backing to leveldb backing. Code had not been updated to reflect that the indexedDBpath is a directory path instead of a file path. * Fix a problem with reporting inconsistent size value to the quota manager. Now we always compute deltas against a cached size value and don't change the cached size value w/o reporting a delta. * Fix a problem with erroneously accessing the filesystem for queries about indexed db usage when working with incognito profiles. BUG=56249,76641 Review URL: http://codereview.chromium.org/7692016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@98352 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions')
-rw-r--r--chrome/browser/extensions/extension_service_unittest.cc11
1 files changed, 5 insertions, 6 deletions
diff --git a/chrome/browser/extensions/extension_service_unittest.cc b/chrome/browser/extensions/extension_service_unittest.cc
index 129dfcd..bd19cd6 100644
--- a/chrome/browser/extensions/extension_service_unittest.cc
+++ b/chrome/browser/extensions/extension_service_unittest.cc
@@ -2757,14 +2757,13 @@ TEST_F(ExtensionServiceTest, ClearExtensionData) {
EXPECT_EQ(0, file_util::WriteFile(lso_path, NULL, 0));
EXPECT_TRUE(file_util::PathExists(lso_path));
- // Create indexed db. Again, it is enough to only simulate this by creating
- // the file on the disk.
+ // Create indexed db. Similarly, it is enough to only simulate this by
+ // creating the directory on the disk.
IndexedDBContext* idb_context =
profile_->GetWebKitContext()->indexed_db_context();
FilePath idb_path = idb_context->GetIndexedDBFilePath(origin_id);
- EXPECT_TRUE(file_util::CreateDirectory(idb_path.DirName()));
- EXPECT_EQ(0, file_util::WriteFile(idb_path, NULL, 0));
- EXPECT_TRUE(file_util::PathExists(idb_path));
+ EXPECT_TRUE(file_util::CreateDirectory(idb_path));
+ EXPECT_TRUE(file_util::DirectoryExists(idb_path));
// Uninstall the extension.
service_->UninstallExtension(good_crx, false, NULL);
@@ -2787,7 +2786,7 @@ TEST_F(ExtensionServiceTest, ClearExtensionData) {
EXPECT_FALSE(file_util::PathExists(lso_path));
// Check if the indexed db has disappeared too.
- EXPECT_FALSE(file_util::PathExists(idb_path));
+ EXPECT_FALSE(file_util::DirectoryExists(idb_path));
}
// Tests loading single extensions (like --load-extension)