diff options
author | dumi@chromium.org <dumi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-23 23:16:38 +0000 |
---|---|---|
committer | dumi@chromium.org <dumi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-23 23:16:38 +0000 |
commit | fd2bf4fc5ac9b57394317435b57f33c0fa044ebe (patch) | |
tree | 4aff75ec15016d09788fb755f76c633964c8cf63 /webkit/database/database_tracker.cc | |
parent | 2cc1b3b02becea91928f24aecbf30b54c6b30329 (diff) | |
download | chromium_src-fd2bf4fc5ac9b57394317435b57f33c0fa044ebe.zip chromium_src-fd2bf4fc5ac9b57394317435b57f33c0fa044ebe.tar.gz chromium_src-fd2bf4fc5ac9b57394317435b57f33c0fa044ebe.tar.bz2 |
Increasing the default DB quota for extensions from 5MB to 50MB.
TEST=none
BUG=none
Review URL: http://codereview.chromium.org/434017
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32883 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/database/database_tracker.cc')
-rw-r--r-- | webkit/database/database_tracker.cc | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/webkit/database/database_tracker.cc b/webkit/database/database_tracker.cc index 125ab38..efece6d6 100644 --- a/webkit/database/database_tracker.cc +++ b/webkit/database/database_tracker.cc @@ -24,6 +24,8 @@ const FilePath::CharType kTrackerDatabaseFileName[] = const int kCurrentVersion = 1; const int kCompatibleVersion = 1; const int64 kDefaultQuota = 5 * 1024 * 1024; +const int64 kDefaultExtensionQuota = 50 * 1024 * 1024; +const char* kExtensionOriginIdentifierPrefix = "chrome-extension_"; DatabaseTracker::DatabaseTracker(const FilePath& profile_path) : initialized_(false), @@ -228,7 +230,12 @@ int64 DatabaseTracker::GetOriginUsage(const string16& origin_identifier) { } int64 DatabaseTracker::GetOriginQuota( - const string16& /*origin_identifier*/) const { + const string16& origin_identifier) const { + if (StartsWith(origin_identifier, + ASCIIToUTF16(kExtensionOriginIdentifierPrefix), true)) { + return kDefaultExtensionQuota; + } + return kDefaultQuota; } |