diff options
author | dumi@chromium.org <dumi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-09 23:43:34 +0000 |
---|---|---|
committer | dumi@chromium.org <dumi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-09 23:43:34 +0000 |
commit | 2f351cb2a5227e76f180fbf3c2295705944f9ab9 (patch) | |
tree | fc7845119aa8765f9d1e1449367980b41bb05306 /chrome/test/testing_profile.cc | |
parent | 7719ee4ad47c89053320db220eeb55a80d16d730 (diff) | |
download | chromium_src-2f351cb2a5227e76f180fbf3c2295705944f9ab9.zip chromium_src-2f351cb2a5227e76f180fbf3c2295705944f9ab9.tar.gz chromium_src-2f351cb2a5227e76f180fbf3c2295705944f9ab9.tar.bz2 |
Adding support for DatabaseTracker messages to
DatabaseDispatcherHost. This code will get called as soon as we switch
from WebCore's DatabaseTracker implementation to Chromium's. Also,
cleaned up the pre-existing support for VFS messages.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/340067
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31507 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/testing_profile.cc')
-rw-r--r-- | chrome/test/testing_profile.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/chrome/test/testing_profile.cc b/chrome/test/testing_profile.cc index 86e7eab..b718773 100644 --- a/chrome/test/testing_profile.cc +++ b/chrome/test/testing_profile.cc @@ -10,6 +10,7 @@ #include "chrome/browser/history/history_backend.h" #include "chrome/browser/sync/profile_sync_service.h" #include "chrome/common/chrome_constants.h" +#include "webkit/database/database_tracker.h" #if defined(OS_LINUX) && !defined(TOOLKIT_VIEWS) #include "chrome/browser/gtk/gtk_theme_provider.h" @@ -182,6 +183,12 @@ void TestingProfile::UseThemeProvider(BrowserThemeProvider* theme_provider) { theme_provider_.reset(theme_provider); } +webkit_database::DatabaseTracker* TestingProfile::GetDatabaseTracker() { + if (!db_tracker_) + db_tracker_ = new webkit_database::DatabaseTracker(GetPath()); + return db_tracker_; +} + void TestingProfile::InitThemes() { if (!created_theme_provider_) { #if defined(OS_LINUX) && !defined(TOOLKIT_VIEWS) |