summaryrefslogtreecommitdiffstats
path: root/chrome/browser/profile.cc
diff options
context:
space:
mode:
authorpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-23 21:23:53 +0000
committerpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-23 21:23:53 +0000
commit9cddbe374f0d3d702532803bf4b2a15e76a918e4 (patch)
treed5bf36e3456fb7471be1a8b51ca30a66c1c68d08 /chrome/browser/profile.cc
parentf704c5b267c4eaca90408f485c5d921174300867 (diff)
downloadchromium_src-9cddbe374f0d3d702532803bf4b2a15e76a918e4.zip
chromium_src-9cddbe374f0d3d702532803bf4b2a15e76a918e4.tar.gz
chromium_src-9cddbe374f0d3d702532803bf4b2a15e76a918e4.tar.bz2
Add functions to purge the Web Database memory and get the service without creating it, for the memory purger.
BUG=23400 TEST=none Review URL: http://codereview.chromium.org/326014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29945 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/profile.cc')
-rw-r--r--chrome/browser/profile.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/chrome/browser/profile.cc b/chrome/browser/profile.cc
index 2f6b153..b8af2e9 100644
--- a/chrome/browser/profile.cc
+++ b/chrome/browser/profile.cc
@@ -310,6 +310,10 @@ class OffTheRecordProfileImpl : public Profile,
}
}
+ virtual WebDataService* GetWebDataServiceWithoutCreating() {
+ return profile_->GetWebDataServiceWithoutCreating();
+ }
+
virtual PasswordStore* GetPasswordStore(ServiceAccessType sat) {
if (sat == EXPLICIT_ACCESS) {
return profile_->GetPasswordStore(sat);
@@ -1009,6 +1013,10 @@ WebDataService* ProfileImpl::GetWebDataService(ServiceAccessType sat) {
return web_data_service_.get();
}
+WebDataService* ProfileImpl::GetWebDataServiceWithoutCreating() {
+ return web_data_service_.get();
+}
+
void ProfileImpl::CreateWebDataService() {
DCHECK(!created_web_data_service_ && web_data_service_.get() == NULL);
created_web_data_service_ = true;