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

Issue 23545016: Not creating ClientUsageTracker for unsupported storage type. (Closed)

Created:
7 years, 3 months ago by SeRya
Modified:
7 years, 3 months ago
Reviewers:
michaeln, kinuko
CC:
chromium-reviews, tzik+watch_chromium.org, jam, joi+watch-content_chromium.org, darin-cc_chromium.org, kinuko+watch, Vladislav Kaznacheev
Visibility:
Public.

Description

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

Patch Set 1 #

Total comments: 4

Patch Set 2 : #

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

Messages

Total messages: 12 (0 generated)
SeRya
7 years, 3 months ago (2013-08-28 16:06:43 UTC) #1
michaeln
+kinuko too https://codereview.chromium.org/23545016/diff/1/webkit/browser/quota/usage_tracker.cc File webkit/browser/quota/usage_tracker.cc (right): https://codereview.chromium.org/23545016/diff/1/webkit/browser/quota/usage_tracker.cc#newcode81 webkit/browser/quota/usage_tracker.cc:81: if ((*iter)->DoesSupport(type)) { Thinning out the size ...
7 years, 3 months ago (2013-08-28 19:46:05 UTC) #2
SeRya
https://codereview.chromium.org/23545016/diff/1/webkit/browser/quota/usage_tracker.cc File webkit/browser/quota/usage_tracker.cc (right): https://codereview.chromium.org/23545016/diff/1/webkit/browser/quota/usage_tracker.cc#newcode81 webkit/browser/quota/usage_tracker.cc:81: if ((*iter)->DoesSupport(type)) { On 2013/08/28 19:46:05, michaeln wrote: > ...
7 years, 3 months ago (2013-08-29 09:07:25 UTC) #3
kinuko
looking good, thanks for fixing this up. Do we have a bug number for this? ...
7 years, 3 months ago (2013-08-29 10:21:42 UTC) #4
SeRya
https://codereview.chromium.org/23545016/diff/1/webkit/browser/fileapi/file_system_quota_client.cc File webkit/browser/fileapi/file_system_quota_client.cc (right): https://codereview.chromium.org/23545016/diff/1/webkit/browser/fileapi/file_system_quota_client.cc#newcode205 webkit/browser/fileapi/file_system_quota_client.cc:205: != file_system_types_.end(); On 2013/08/29 10:21:42, kinuko wrote: > It ...
7 years, 3 months ago (2013-08-29 12:14:14 UTC) #5
kinuko
lgtm, sorry for the delay.
7 years, 3 months ago (2013-09-02 14:04:59 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/serya@chromium.org/23545016/2
7 years, 3 months ago (2013-09-02 14:44:17 UTC) #7
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=23425
7 years, 3 months ago (2013-09-02 14:56:57 UTC) #8
SeRya
@michaeln, I still need owner's review for content/browser/indexed_db/* files. Have a look, please.
7 years, 3 months ago (2013-09-02 15:19:05 UTC) #9
michaeln
lgtm2 (sorry for the delay2)
7 years, 3 months ago (2013-09-03 21:28:37 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/serya@chromium.org/23545016/2
7 years, 3 months ago (2013-09-04 16:35:10 UTC) #11
commit-bot: I haz the power
7 years, 3 months ago (2013-09-04 20:10:48 UTC) #12
Message was sent while issue was closed.
Change committed as 221244

Powered by Google App Engine
This is Rietveld 408576698