Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(76)

Unified Diff: webkit/database/database_tracker.cc

Issue 434017: Increasing the default DB quota for extensions from 5MB to 50MB.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Addressed Michael's comment. Created 11 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/database/database_tracker.cc
===================================================================
--- webkit/database/database_tracker.cc (revision 32822)
+++ webkit/database/database_tracker.cc (working copy)
@@ -24,6 +24,8 @@
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::GetOriginQuota(
- const string16& /*origin_identifier*/) const {
+ const string16& origin_identifier) const {
+ if (StartsWith(origin_identifier,
+ ASCIIToUTF16(kExtensionOriginIdentifierPrefix), true)) {
+ return kDefaultExtensionQuota;
+ }
+
return kDefaultQuota;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698