From f711488d3f4ed881fc71f38b18f695f850d141be Mon Sep 17 00:00:00 2001 From: "serya@chromium.org" Date: Wed, 4 Sep 2013 20:10:47 +0000 Subject: Not creating ClientUsageTracker for unsupported storage type. Extracted from https://chromiumcodereview.appspot.com/23240002/ Currently we create all usage trackers for each pair QuotaClient/StorageType. Most clients only support one storage type and filesystem support variable list of types (it doesn't have kStorageTypeSyncable in unittests). If filesystem has no syncable storage backend it not useless to keep create ClientUsageTracker. This tracker fails when GetHostUsage is invoked. So let's don't create it. BUG=281252 Review URL: https://chromiumcodereview.appspot.com/23545016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@221244 0039d316-1c4b-4281-b951-d872f2087c98 --- webkit/browser/fileapi/file_system_quota_client.h | 1 + 1 file changed, 1 insertion(+) (limited to 'webkit/browser/fileapi/file_system_quota_client.h') diff --git a/webkit/browser/fileapi/file_system_quota_client.h b/webkit/browser/fileapi/file_system_quota_client.h index f216804..f3cf68d 100644 --- a/webkit/browser/fileapi/file_system_quota_client.h +++ b/webkit/browser/fileapi/file_system_quota_client.h @@ -56,6 +56,7 @@ class WEBKIT_STORAGE_BROWSER_EXPORT_PRIVATE FileSystemQuotaClient const GURL& origin, quota::StorageType type, const DeletionCallback& callback) OVERRIDE; + virtual bool DoesSupport(quota::StorageType type) const OVERRIDE; private: base::SequencedTaskRunner* file_task_runner() const; -- cgit v1.1