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

Issue 2335933003: Make DOMStorageContextWrapper a client of memory coordinator (Closed)

Created:
4 years, 3 months ago by hajimehoshi
Modified:
4 years, 3 months ago
CC:
chromium-reviews, jam, darin-cc_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make DOMStorageContextWrapper a client of memory coordinator When the memory coordinator is enabled, DOMStorageContextWrapper becomes a client of the memory coordinator instead of installing MemoryPressureListener. Design Doc: https://docs.google.com/document/d/1a69mMr7jI7qK0OfKNlrZ350xiXizVMCCe8orGX7K8Uo/edit?ts=57d7968b# BUG=639700 Committed: https://crrev.com/a517a220c9961d15c4f045ff3cabe03fa8e9af2c Cr-Commit-Position: refs/heads/master@{#419692}

Patch Set 1 #

Total comments: 15

Patch Set 2 : Address on reviews #

Total comments: 8

Patch Set 3 : Address on reviews #

Patch Set 4 : (rebase) #

Total comments: 1

Patch Set 5 : Use FeatureList::IsEnabled #

Total comments: 5

Patch Set 6 : Address on ssid's review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+53 lines, -7 lines) Patch
M content/browser/dom_storage/dom_storage_context_wrapper.h View 1 2 3 4 chunks +13 lines, -5 lines 0 comments Download
M content/browser/dom_storage/dom_storage_context_wrapper.cc View 1 2 3 4 5 5 chunks +40 lines, -2 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 37 (19 generated)
hajimehoshi
PTAL
4 years, 3 months ago (2016-09-13 08:16:45 UTC) #4
bashi
+ssid@ who added a MPL to DOMStrageContextWrapper.
4 years, 3 months ago (2016-09-13 08:24:38 UTC) #6
ssid
https://codereview.chromium.org/2335933003/diff/1/content/browser/dom_storage/dom_storage_context_wrapper.cc File content/browser/dom_storage/dom_storage_context_wrapper.cc (right): https://codereview.chromium.org/2335933003/diff/1/content/browser/dom_storage/dom_storage_context_wrapper.cc#newcode397 content/browser/dom_storage/dom_storage_context_wrapper.cc:397: PurgeMemory(base::MemoryPressureListener::MEMORY_PRESSURE_LEVEL_CRITICAL); Why are we always purging aggressively here? shouldn't ...
4 years, 3 months ago (2016-09-13 18:29:23 UTC) #9
michaeln
https://codereview.chromium.org/2335933003/diff/1/content/browser/dom_storage/dom_storage_context_wrapper.cc File content/browser/dom_storage/dom_storage_context_wrapper.cc (right): https://codereview.chromium.org/2335933003/diff/1/content/browser/dom_storage/dom_storage_context_wrapper.cc#newcode297 content/browser/dom_storage/dom_storage_context_wrapper.cc:297: if (memory_coordinator::MemoryCoordinator::GetInstance()) { Register() / Unregister() need to be ...
4 years, 3 months ago (2016-09-14 01:34:41 UTC) #10
bashi
https://codereview.chromium.org/2335933003/diff/1/content/browser/dom_storage/dom_storage_context_wrapper.cc File content/browser/dom_storage/dom_storage_context_wrapper.cc (right): https://codereview.chromium.org/2335933003/diff/1/content/browser/dom_storage/dom_storage_context_wrapper.cc#newcode401 content/browser/dom_storage/dom_storage_context_wrapper.cc:401: memory_coordinator::MemoryState state) { On 2016/09/14 01:34:41, michaeln wrote: > ...
4 years, 3 months ago (2016-09-14 03:33:13 UTC) #11
hajimehoshi
Thank you! https://codereview.chromium.org/2335933003/diff/1/content/browser/dom_storage/dom_storage_context_wrapper.cc File content/browser/dom_storage/dom_storage_context_wrapper.cc (right): https://codereview.chromium.org/2335933003/diff/1/content/browser/dom_storage/dom_storage_context_wrapper.cc#newcode297 content/browser/dom_storage/dom_storage_context_wrapper.cc:297: if (memory_coordinator::MemoryCoordinator::GetInstance()) { On 2016/09/14 01:34:41, michaeln ...
4 years, 3 months ago (2016-09-14 11:49:48 UTC) #12
michaeln
https://codereview.chromium.org/2335933003/diff/1/content/browser/dom_storage/dom_storage_context_wrapper.cc File content/browser/dom_storage/dom_storage_context_wrapper.cc (right): https://codereview.chromium.org/2335933003/diff/1/content/browser/dom_storage/dom_storage_context_wrapper.cc#newcode405 content/browser/dom_storage/dom_storage_context_wrapper.cc:405: void DOMStorageContextWrapper::PurgeMemory(bool aggressively) On 2016/09/14 11:49:48, hajimehoshi wrote: > ...
4 years, 3 months ago (2016-09-14 19:40:49 UTC) #13
hajimehoshi
Thank you! https://codereview.chromium.org/2335933003/diff/1/content/browser/dom_storage/dom_storage_context_wrapper.cc File content/browser/dom_storage/dom_storage_context_wrapper.cc (right): https://codereview.chromium.org/2335933003/diff/1/content/browser/dom_storage/dom_storage_context_wrapper.cc#newcode405 content/browser/dom_storage/dom_storage_context_wrapper.cc:405: void DOMStorageContextWrapper::PurgeMemory(bool aggressively) On 2016/09/14 19:40:48, michaeln ...
4 years, 3 months ago (2016-09-15 09:14:46 UTC) #16
michaeln
this lgtm if it lgt ssid https://codereview.chromium.org/2335933003/diff/1/content/browser/dom_storage/dom_storage_context_wrapper.cc File content/browser/dom_storage/dom_storage_context_wrapper.cc (right): https://codereview.chromium.org/2335933003/diff/1/content/browser/dom_storage/dom_storage_context_wrapper.cc#newcode405 content/browser/dom_storage/dom_storage_context_wrapper.cc:405: void DOMStorageContextWrapper::PurgeMemory(bool aggressively) ...
4 years, 3 months ago (2016-09-15 20:46:28 UTC) #21
ssid
Sorry for the late reply. I was trying to read the doc and got lost. ...
4 years, 3 months ago (2016-09-15 21:58:54 UTC) #22
bashi
https://codereview.chromium.org/2335933003/diff/80001/content/browser/dom_storage/dom_storage_context_wrapper.cc File content/browser/dom_storage/dom_storage_context_wrapper.cc (right): https://codereview.chromium.org/2335933003/diff/80001/content/browser/dom_storage/dom_storage_context_wrapper.cc#newcode415 content/browser/dom_storage/dom_storage_context_wrapper.cc:415: case base::MemoryState::THROTTLED: On 2016/09/15 21:58:54, ssid wrote: > I ...
4 years, 3 months ago (2016-09-15 23:09:29 UTC) #23
ssid
https://codereview.chromium.org/2335933003/diff/80001/content/browser/dom_storage/dom_storage_context_wrapper.cc File content/browser/dom_storage/dom_storage_context_wrapper.cc (right): https://codereview.chromium.org/2335933003/diff/80001/content/browser/dom_storage/dom_storage_context_wrapper.cc#newcode415 content/browser/dom_storage/dom_storage_context_wrapper.cc:415: case base::MemoryState::THROTTLED: On 2016/09/15 23:09:29, bashi1 wrote: > On ...
4 years, 3 months ago (2016-09-15 23:39:56 UTC) #24
bashi
https://codereview.chromium.org/2335933003/diff/80001/content/browser/dom_storage/dom_storage_context_wrapper.cc File content/browser/dom_storage/dom_storage_context_wrapper.cc (right): https://codereview.chromium.org/2335933003/diff/80001/content/browser/dom_storage/dom_storage_context_wrapper.cc#newcode415 content/browser/dom_storage/dom_storage_context_wrapper.cc:415: case base::MemoryState::THROTTLED: On 2016/09/15 23:39:56, ssid wrote: > On ...
4 years, 3 months ago (2016-09-15 23:57:42 UTC) #25
hajimehoshi
Thank you! https://codereview.chromium.org/2335933003/diff/80001/content/browser/dom_storage/dom_storage_context_wrapper.cc File content/browser/dom_storage/dom_storage_context_wrapper.cc (right): https://codereview.chromium.org/2335933003/diff/80001/content/browser/dom_storage/dom_storage_context_wrapper.cc#newcode415 content/browser/dom_storage/dom_storage_context_wrapper.cc:415: case base::MemoryState::THROTTLED: On 2016/09/15 23:57:42, bashi1 (slow ...
4 years, 3 months ago (2016-09-20 05:26:18 UTC) #26
bashi
non-owner lgtm
4 years, 3 months ago (2016-09-20 05:28:23 UTC) #29
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/2335933003/100001
4 years, 3 months ago (2016-09-20 07:13:27 UTC) #34
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 3 months ago (2016-09-20 07:17:34 UTC) #35
commit-bot: I haz the power
4 years, 3 months ago (2016-09-20 07:19:20 UTC) #37
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/a517a220c9961d15c4f045ff3cabe03fa8e9af2c
Cr-Commit-Position: refs/heads/master@{#419692}

Powered by Google App Engine
This is Rietveld 408576698