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

Issue 2116783002: [CacheStorage] Don't call GetUsageAndQuota from a scheduled operation (Closed)

Created:
4 years, 5 months ago by jkarlin
Modified:
4 years, 5 months ago
Reviewers:
CC:
chromium-reviews, darin-cc_chromium.org, jam, jkarlin+watch_chromium.org, nhiroki
Base URL:
https://chromium.googlesource.com/chromium/src.git@2704
Target Ref:
refs/pending/branch-heads/2704
Project:
chromium
Visibility:
Public.

Description

[CacheStorage] Don't call GetUsageAndQuota from a scheduled operation Merge into branch 2704 Scheduled operations run sequentially. GetUsageAndQuota() can sometimes create a new Size() scheduled operation, so calling it while in a scheduled operation can result in a hung CacheStorage. This CL moves the calls to GetUsageAndQuota to just before the operations are scheduled. This means that the size estimate is less accurate, as it's determined potentially well before the operation runs. BUG=620713 Review-Url: https://codereview.chromium.org/2085583002 Cr-Commit-Position: refs/heads/master@{#401001} (cherry picked from commit 36dc82c2b7539b33b63cb6f967feae265625d178) Committed: https://chromium.googlesource.com/chromium/src/+/64d27590ccffe40abab3e9560bd886f3624eff23

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+64 lines, -92 lines) Patch
M content/browser/cache_storage/cache_storage_cache.h View 4 chunks +10 lines, -8 lines 0 comments Download
M content/browser/cache_storage/cache_storage_cache.cc View 6 chunks +53 lines, -48 lines 0 comments Download
M content/browser/cache_storage/cache_storage_cache_unittest.cc View 2 chunks +1 line, -36 lines 0 comments Download

Messages

Total messages: 2 (1 generated)
jkarlin
4 years, 5 months ago (2016-07-01 13:20:57 UTC) #2
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
64d27590ccffe40abab3e9560bd886f3624eff23.

Powered by Google App Engine
This is Rietveld 408576698