|
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
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=221244
Total comments: 4
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+46 lines, -9 lines) |
Patch |
 |
M |
content/browser/indexed_db/indexed_db_quota_client.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
content/browser/indexed_db/indexed_db_quota_client.cc
|
View
|
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
webkit/browser/appcache/appcache_quota_client.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
webkit/browser/appcache/appcache_quota_client.cc
|
View
|
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
webkit/browser/database/database_quota_client.h
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
webkit/browser/database/database_quota_client.cc
|
View
|
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
webkit/browser/fileapi/file_system_context.cc
|
View
|
1
|
3 chunks |
+8 lines, -6 lines |
0 comments
|
Download
|
 |
M |
webkit/browser/fileapi/file_system_quota_client.h
|
View
|
1
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
webkit/browser/fileapi/file_system_quota_client.cc
|
View
|
1
|
1 chunk |
+6 lines, -0 lines |
0 comments
|
Download
|
 |
M |
webkit/browser/quota/mock_storage_client.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
webkit/browser/quota/mock_storage_client.cc
|
View
|
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
webkit/browser/quota/quota_client.h
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
webkit/browser/quota/usage_tracker.cc
|
View
|
|
1 chunk |
+4 lines, -2 lines |
0 comments
|
Download
|
 |
M |
webkit/browser/quota/usage_tracker_unittest.cc
|
View
|
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
Total messages: 12 (0 generated)
|