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

Issue 2092133003: [DOMStorage] Do not try purging caches when no database is open (Closed)

Created:
4 years, 6 months ago by ssid
Modified:
4 years, 5 months ago
Reviewers:
michaeln
CC:
chromium-reviews, darin-cc_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@filter_args
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[DOMStorage] Do not try purging caches when no database is open Looking at the histogram metrics, it looks like there are multiple memory pressure signals triggered in the same device frequently. We still record multiple 0s after clearing the caches at the first signal. This CL tries to reduce this by checking before calling purge and recording the values. BUG=610551 Committed: https://crrev.com/d000d7c16219b88a225ef7676ab58f3388691623 Cr-Commit-Position: refs/heads/master@{#402539}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Fixes. #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -9 lines) Patch
M content/browser/dom_storage/dom_storage_context_impl.cc View 1 3 chunks +11 lines, -9 lines 3 comments Download

Depends on Patchset:

Messages

Total messages: 16 (5 generated)
ssid
I am sorry I keep coming back with changes in this logic. I had to ...
4 years, 6 months ago (2016-06-24 21:39:41 UTC) #2
michaeln
https://codereview.chromium.org/2092133003/diff/1/content/browser/dom_storage/dom_storage_context_impl.cc File content/browser/dom_storage/dom_storage_context_impl.cc (right): https://codereview.chromium.org/2092133003/diff/1/content/browser/dom_storage/dom_storage_context_impl.cc#newcode441 content/browser/dom_storage/dom_storage_context_impl.cc:441: 50); if (!stats.total_area_count) return; I think the change makes ...
4 years, 5 months ago (2016-06-27 21:51:15 UTC) #3
ssid
https://codereview.chromium.org/2092133003/diff/1/content/browser/dom_storage/dom_storage_context_impl.cc File content/browser/dom_storage/dom_storage_context_impl.cc (right): https://codereview.chromium.org/2092133003/diff/1/content/browser/dom_storage/dom_storage_context_impl.cc#newcode441 content/browser/dom_storage/dom_storage_context_impl.cc:441: 50); On 2016/06/27 21:51:15, michaeln wrote: > if (!stats.total_area_count) ...
4 years, 5 months ago (2016-06-27 22:00:37 UTC) #4
michaeln
lgtm https://codereview.chromium.org/2092133003/diff/20001/content/browser/dom_storage/dom_storage_context_impl.cc File content/browser/dom_storage/dom_storage_context_impl.cc (right): https://codereview.chromium.org/2092133003/diff/20001/content/browser/dom_storage/dom_storage_context_impl.cc#newcode470 content/browser/dom_storage/dom_storage_context_impl.cc:470: return; nit: you might be able to work ...
4 years, 5 months ago (2016-06-27 22:59:02 UTC) #5
ssid
https://codereview.chromium.org/2092133003/diff/20001/content/browser/dom_storage/dom_storage_context_impl.cc File content/browser/dom_storage/dom_storage_context_impl.cc (right): https://codereview.chromium.org/2092133003/diff/20001/content/browser/dom_storage/dom_storage_context_impl.cc#newcode470 content/browser/dom_storage/dom_storage_context_impl.cc:470: return; On 2016/06/27 22:59:02, michaeln wrote: > nit: you ...
4 years, 5 months ago (2016-06-27 23:09:29 UTC) #6
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2092133003/20001
4 years, 5 months ago (2016-06-28 17:10:21 UTC) #8
michaeln
https://codereview.chromium.org/2092133003/diff/20001/content/browser/dom_storage/dom_storage_context_impl.cc File content/browser/dom_storage/dom_storage_context_impl.cc (right): https://codereview.chromium.org/2092133003/diff/20001/content/browser/dom_storage/dom_storage_context_impl.cc#newcode470 content/browser/dom_storage/dom_storage_context_impl.cc:470: return; On 2016/06/27 23:09:29, ssid wrote: > On 2016/06/27 ...
4 years, 5 months ago (2016-06-28 18:33:45 UTC) #9
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 5 months ago (2016-06-28 20:12:18 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2092133003/20001
4 years, 5 months ago (2016-06-28 20:35:06 UTC) #13
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 5 months ago (2016-06-28 20:41:38 UTC) #14
commit-bot: I haz the power
4 years, 5 months ago (2016-06-28 20:43:56 UTC) #16
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/d000d7c16219b88a225ef7676ab58f3388691623
Cr-Commit-Position: refs/heads/master@{#402539}

Powered by Google App Engine
This is Rietveld 408576698