summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrvargas@chromium.org <rvargas@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-03 01:29:46 +0000
committerrvargas@chromium.org <rvargas@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-03 01:29:46 +0000
commit0b370d73f479f67b28ec0833616cfbdace6404ec (patch)
tree477b8dd400379fd10bcb5701f96a3d883720375f
parent12f42a6e3d9865d41ff2c34635321330fc1aafb7 (diff)
downloadchromium_src-0b370d73f479f67b28ec0833616cfbdace6404ec.zip
chromium_src-0b370d73f479f67b28ec0833616cfbdace6404ec.tar.gz
chromium_src-0b370d73f479f67b28ec0833616cfbdace6404ec.tar.bz2
Delete db_tracker_ before attempting to delete the scoped
folder for unit tests. BUG=102593 TEST=unit_tests (ExtensionServiceTest.InstallAppsWithUnlimtedStorage) does not print error messages. Review URL: http://codereview.chromium.org/8437030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@108396 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--chrome/test/base/testing_profile.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/chrome/test/base/testing_profile.cc b/chrome/test/base/testing_profile.cc
index e9b8805..04f2b72 100644
--- a/chrome/test/base/testing_profile.cc
+++ b/chrome/test/base/testing_profile.cc
@@ -200,6 +200,9 @@ TestingProfile::~TestingProfile() {
if (pref_proxy_config_tracker_.get())
pref_proxy_config_tracker_->DetachFromPrefService();
+
+ // Close the handles so that proper cleanup can be done.
+ db_tracker_ = NULL;
}
void TestingProfile::CreateFaviconService() {