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

Issue 2311723002: Move memory_coordinator_client and its registry to base/memory (Closed)

Created:
4 years, 3 months ago by bashi
Modified:
4 years, 3 months ago
CC:
blundell+watchlist_chromium.org, chromium-reviews, danakj, droger+watchlist_chromium.org, gavinp+memory_chromium.org, sdefresne+watchlist_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Move memory_coordinator_client and its registry to base/memory This is the first CL to move memory_coordinator outside components/. Also, per discussion on [1], this CL removes MemoryCoordinatorClient from HistoryBackend. We can re-add it if needed. [1] https://codereview.chromium.org/2297243004/#msg14 BUG=644022 Committed: https://crrev.com/e70150fb5845bf645adec87036eca3b789d7ddcc Cr-Commit-Position: refs/heads/master@{#418766}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Merge TrimMemory with OnMemoryPressure #

Total comments: 5

Patch Set 3 : comment #

Total comments: 3

Patch Set 4 : Update comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+158 lines, -175 lines) Patch
M base/BUILD.gn View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
A + base/memory/memory_coordinator_client.h View 1 2 3 2 chunks +19 lines, -9 lines 0 comments Download
A base/memory/memory_coordinator_client_registry.h View 1 chunk +41 lines, -0 lines 0 comments Download
A base/memory/memory_coordinator_client_registry.cc View 1 chunk +32 lines, -0 lines 0 comments Download
M components/history/core/DEPS View 1 chunk +0 lines, -1 line 0 comments Download
M components/history/core/browser/BUILD.gn View 1 chunk +0 lines, -1 line 0 comments Download
M components/history/core/browser/history_backend.h View 1 4 chunks +1 line, -9 lines 0 comments Download
M components/history/core/browser/history_backend.cc View 1 2 5 chunks +6 lines, -26 lines 0 comments Download
M components/memory_coordinator/browser/memory_coordinator.h View 2 chunks +3 lines, -3 lines 0 comments Download
M components/memory_coordinator/browser/memory_coordinator.cc View 1 chunk +1 line, -0 lines 0 comments Download
M components/memory_coordinator/browser/memory_coordinator_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/memory_coordinator/child/child_memory_coordinator_impl.h View 2 chunks +2 lines, -4 lines 0 comments Download
M components/memory_coordinator/child/child_memory_coordinator_impl.cc View 3 chunks +21 lines, -2 lines 0 comments Download
M components/memory_coordinator/child/child_memory_coordinator_impl_unittest.cc View 5 chunks +26 lines, -27 lines 0 comments Download
M components/memory_coordinator/common/BUILD.gn View 1 chunk +0 lines, -3 lines 0 comments Download
D components/memory_coordinator/common/client_registry.h View 1 chunk +0 lines, -35 lines 0 comments Download
D components/memory_coordinator/common/client_registry.cc View 1 chunk +0 lines, -21 lines 0 comments Download
D components/memory_coordinator/common/memory_coordinator_client.h View 1 chunk +0 lines, -26 lines 0 comments Download
M components/memory_coordinator/public/interfaces/child_memory_coordinator.mojom View 1 2 3 1 chunk +2 lines, -7 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 57 (20 generated)
bashi
Hi OWNERS, Could you review this? thakis@: base haraken@, chrisha@: components/memory_coordinator sky@: components/history tasak@: FYI
4 years, 3 months ago (2016-09-05 02:48:19 UTC) #5
haraken
LGTM
4 years, 3 months ago (2016-09-05 04:18:12 UTC) #8
tasak
lgtm
4 years, 3 months ago (2016-09-05 07:47:07 UTC) #9
chrisha
lgtm
4 years, 3 months ago (2016-09-06 13:23:18 UTC) #12
sky
https://codereview.chromium.org/2311723002/diff/1/components/history/core/browser/history_backend.cc File components/history/core/browser/history_backend.cc (right): https://codereview.chromium.org/2311723002/diff/1/components/history/core/browser/history_backend.cc#newcode740 components/history/core/browser/history_backend.cc:740: void HistoryBackend::TrimMemory(bool trim_aggressively) { How that there is only ...
4 years, 3 months ago (2016-09-06 20:21:11 UTC) #13
bashi
https://codereview.chromium.org/2311723002/diff/1/components/history/core/browser/history_backend.cc File components/history/core/browser/history_backend.cc (right): https://codereview.chromium.org/2311723002/diff/1/components/history/core/browser/history_backend.cc#newcode740 components/history/core/browser/history_backend.cc:740: void HistoryBackend::TrimMemory(bool trim_aggressively) { On 2016/09/06 20:21:11, sky wrote: ...
4 years, 3 months ago (2016-09-07 23:38:35 UTC) #16
haraken
Nico: Would you take a look at base/?
4 years, 3 months ago (2016-09-07 23:44:59 UTC) #17
sky
Thanks, LGTM
4 years, 3 months ago (2016-09-08 04:17:39 UTC) #20
bashi
dcheng@: Could you review base/ ? The motivation is described in https://docs.google.com/document/d/1aURKosRD5uxw4LEEF1s6G3uR02qBv_19COfSXrtyJUE/edit#heading=h.xaehcp90zst1
4 years, 3 months ago (2016-09-08 06:22:34 UTC) #22
dcheng
https://codereview.chromium.org/2311723002/diff/20001/base/memory/memory_coordinator_client_registry.cc File base/memory/memory_coordinator_client_registry.cc (right): https://codereview.chromium.org/2311723002/diff/20001/base/memory/memory_coordinator_client_registry.cc#newcode18 base/memory/memory_coordinator_client_registry.cc:18: : clients_(new ClientList) {} Why do we need to ...
4 years, 3 months ago (2016-09-08 21:28:26 UTC) #23
bashi
https://codereview.chromium.org/2311723002/diff/20001/base/memory/memory_coordinator_client_registry.cc File base/memory/memory_coordinator_client_registry.cc (right): https://codereview.chromium.org/2311723002/diff/20001/base/memory/memory_coordinator_client_registry.cc#newcode18 base/memory/memory_coordinator_client_registry.cc:18: : clients_(new ClientList) {} On 2016/09/08 21:28:26, dcheng wrote: ...
4 years, 3 months ago (2016-09-08 23:00:08 UTC) #24
dcheng
https://codereview.chromium.org/2311723002/diff/20001/base/memory/memory_coordinator_client.h File base/memory/memory_coordinator_client.h (right): https://codereview.chromium.org/2311723002/diff/20001/base/memory/memory_coordinator_client.h#newcode15 base/memory/memory_coordinator_client.h:15: THROTTLED = 1, Please add some comments to these ...
4 years, 3 months ago (2016-09-09 03:02:04 UTC) #25
bashi
https://codereview.chromium.org/2311723002/diff/20001/base/memory/memory_coordinator_client.h File base/memory/memory_coordinator_client.h (right): https://codereview.chromium.org/2311723002/diff/20001/base/memory/memory_coordinator_client.h#newcode15 base/memory/memory_coordinator_client.h:15: THROTTLED = 1, On 2016/09/09 03:02:04, dcheng wrote: > ...
4 years, 3 months ago (2016-09-09 03:21:43 UTC) #26
Nico
danakj has been doing a lot of discussions about what stuff should go where. In ...
4 years, 3 months ago (2016-09-09 14:50:38 UTC) #28
chrisha
On 2016/09/09 14:50:38, Nico wrote: > danakj has been doing a lot of discussions about ...
4 years, 3 months ago (2016-09-09 15:13:01 UTC) #29
danakj
On Fri, Sep 9, 2016 at 8:13 AM, <chrisha@chromium.org> wrote: > On 2016/09/09 14:50:38, Nico ...
4 years, 3 months ago (2016-09-09 18:32:36 UTC) #30
danakj
On Fri, Sep 9, 2016 at 11:32 AM, <danakj@chromium.org> wrote: > On Fri, Sep 9, ...
4 years, 3 months ago (2016-09-09 18:38:56 UTC) #31
dcheng
On 2016/09/09 18:38:56, danakj wrote: > On Fri, Sep 9, 2016 at 11:32 AM, <mailto:danakj@chromium.org> ...
4 years, 3 months ago (2016-09-09 18:45:53 UTC) #32
bashi
+jochen@ It seems that we don't reach a consensus about where to put memory coordinator. ...
4 years, 3 months ago (2016-09-12 23:16:29 UTC) #34
haraken
Just a drive-by, but this is blocking a bunch of CLs for landing MemoryCoordinator & ...
4 years, 3 months ago (2016-09-13 05:07:40 UTC) #35
haraken
On 2016/09/13 05:07:40, haraken wrote: > Just a drive-by, but this is blocking a bunch ...
4 years, 3 months ago (2016-09-14 02:02:32 UTC) #36
danakj
On Tue, Sep 13, 2016 at 7:02 PM, <haraken@chromium.org> wrote: > On 2016/09/13 05:07:40, haraken ...
4 years, 3 months ago (2016-09-14 02:33:51 UTC) #37
jochen (gone - plz use gerrit)
components/ isn't a temporary dumping ground either.... Maybe we should have a VC or something ...
4 years, 3 months ago (2016-09-14 09:02:35 UTC) #38
haraken
On 2016/09/14 09:02:35, jochen wrote: > components/ isn't a temporary dumping ground either.... > > ...
4 years, 3 months ago (2016-09-14 12:33:07 UTC) #39
haraken
+jam: FYI. We're discussing where MemoryCoordinator should be added.
4 years, 3 months ago (2016-09-14 12:34:18 UTC) #41
jam
Dana: base/memory/memory_coordinator_client* replaces base/memory/memory_pressure*, so this seems natural to go into base. Having net/ depend ...
4 years, 3 months ago (2016-09-14 17:15:42 UTC) #42
jam
fwiw this lgtm
4 years, 3 months ago (2016-09-14 17:16:33 UTC) #43
danakj
On Wed, Sep 14, 2016 at 10:15 AM, <jam@chromium.org> wrote: > Dana: base/memory/memory_coordinator_client* replaces > ...
4 years, 3 months ago (2016-09-14 17:23:32 UTC) #44
danakj
base/ LGTM
4 years, 3 months ago (2016-09-14 17:25:09 UTC) #45
bashi
Thank you! If dcheng@ is OK with this, I'll land the CL.
4 years, 3 months ago (2016-09-14 22:16:26 UTC) #46
dcheng
On 2016/09/14 22:16:26, bashi1 wrote: > Thank you! > > If dcheng@ is OK with ...
4 years, 3 months ago (2016-09-15 00:18:44 UTC) #47
dcheng
https://codereview.chromium.org/2311723002/diff/40001/base/memory/memory_coordinator_client.h File base/memory/memory_coordinator_client.h (right): https://codereview.chromium.org/2311723002/diff/40001/base/memory/memory_coordinator_client.h#newcode12 base/memory/memory_coordinator_client.h:12: // MemoryState represents status of a process. Btw, not ...
4 years, 3 months ago (2016-09-15 00:19:19 UTC) #48
bashi
https://codereview.chromium.org/2311723002/diff/40001/base/memory/memory_coordinator_client.h File base/memory/memory_coordinator_client.h (right): https://codereview.chromium.org/2311723002/diff/40001/base/memory/memory_coordinator_client.h#newcode12 base/memory/memory_coordinator_client.h:12: // MemoryState represents status of a process. On 2016/09/15 ...
4 years, 3 months ago (2016-09-15 00:28:14 UTC) #49
bashi
https://codereview.chromium.org/2311723002/diff/40001/base/memory/memory_coordinator_client.h File base/memory/memory_coordinator_client.h (right): https://codereview.chromium.org/2311723002/diff/40001/base/memory/memory_coordinator_client.h#newcode12 base/memory/memory_coordinator_client.h:12: // MemoryState represents status of a process. On 2016/09/15 ...
4 years, 3 months ago (2016-09-15 00:39:40 UTC) #50
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/2311723002/60001
4 years, 3 months ago (2016-09-15 00:40:42 UTC) #53
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 3 months ago (2016-09-15 02:44:51 UTC) #55
commit-bot: I haz the power
4 years, 3 months ago (2016-09-15 02:47:54 UTC) #57
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/e70150fb5845bf645adec87036eca3b789d7ddcc
Cr-Commit-Position: refs/heads/master@{#418766}

Powered by Google App Engine
This is Rietveld 408576698