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

Issue 1045433002: Migrate ChromeOS to base::MemoryPressureMonitor (Closed)

Created:
5 years, 9 months ago by dmichael (off chromium)
Modified:
5 years, 8 months ago
CC:
chromium-reviews, jam, darin-cc_chromium.org, oshima+watch_chromium.org, erikwright+watch_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Migrate ChromeOS to base::MemoryPressureMonitor BUG=463546 Committed: https://crrev.com/6d5c49f04dc84c1a8472fe3e2357dda3d80ab6f9 Cr-Commit-Position: refs/heads/master@{#325253}

Patch Set 1 #

Patch Set 2 : move threshold enum to switches #

Patch Set 3 : fix include #

Patch Set 4 : moar fixes #

Patch Set 5 : cleanup/fixes #

Total comments: 2

Patch Set 6 : Move back to base #

Patch Set 7 : add missing files #

Patch Set 8 : more renaming #

Patch Set 9 : rebase #

Patch Set 10 : remove no-longer-relevant OWNERS change #

Total comments: 8

Patch Set 11 : review comments #

Patch Set 12 : fix chromeos compile #

Total comments: 8

Patch Set 13 : review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+110 lines, -663 lines) Patch
M base/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +3 lines, -3 lines 0 comments Download
M base/base.gyp View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -1 line 0 comments Download
M base/base.gypi View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -2 lines 0 comments Download
A + base/chromeos/memory_pressure_monitor_chromeos.h View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +15 lines, -15 lines 0 comments Download
A + base/chromeos/memory_pressure_monitor_chromeos.cc View 1 2 3 4 5 6 7 8 9 10 11 7 chunks +22 lines, -17 lines 0 comments Download
A + base/chromeos/memory_pressure_monitor_chromeos_unittest.cc View 1 2 3 4 5 6 7 4 chunks +28 lines, -28 lines 0 comments Download
D base/chromeos/memory_pressure_observer_chromeos.h View 1 chunk +0 lines, -109 lines 0 comments Download
D base/chromeos/memory_pressure_observer_chromeos.cc View 1 chunk +0 lines, -211 lines 0 comments Download
D base/chromeos/memory_pressure_observer_chromeos_unittest.cc View 1 chunk +0 lines, -164 lines 0 comments Download
M chrome/browser/chromeos/memory/oom_priority_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 7 chunks +16 lines, -23 lines 0 comments Download
M chromeos/chromeos_switches.h View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -2 lines 0 comments Download
M chromeos/chromeos_switches.cc View 1 2 3 4 5 6 7 8 1 chunk +11 lines, -11 lines 0 comments Download
M content/browser/browser_main_loop.h View 1 2 3 4 5 6 7 8 9 10 3 chunks +2 lines, -8 lines 0 comments Download
M content/browser/browser_main_loop.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +3 lines, -3 lines 0 comments Download
D content/browser/memory_pressure_observer.cc View 1 chunk +0 lines, -18 lines 0 comments Download
M content/browser/renderer_host/renderer_frame_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +5 lines, -21 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 4 5 9 10 11 2 chunks +0 lines, -2 lines 0 comments Download
D content/public/browser/memory_pressure_observer.h View 1 chunk +0 lines, -25 lines 0 comments Download

Messages

Total messages: 36 (12 generated)
dmichael (off chromium)
5 years, 8 months ago (2015-03-31 17:36:06 UTC) #4
chrisha
There's a lot going on in this CL that could maybe have been broken down ...
5 years, 8 months ago (2015-03-31 17:53:14 UTC) #5
Mr4D (OOO till 08-26)
Hmmm. Looking at this I have a few questions (as pointed out in my comments): ...
5 years, 8 months ago (2015-03-31 21:12:17 UTC) #6
dmichael (off chromium)
On 2015/03/31 17:53:14, chrisha wrote: > There's a lot going on in this CL that ...
5 years, 8 months ago (2015-03-31 21:14:32 UTC) #7
dmichael (off chromium)
OK, I think this is ready for review now. The base stuff is landed, so ...
5 years, 8 months ago (2015-04-08 21:18:04 UTC) #8
chrisha
Looking good! Especially like the fact that we get rid of the various pieces of ...
5 years, 8 months ago (2015-04-08 21:38:16 UTC) #9
dmichael (off chromium)
Thanks for looking! +oshima since Mr4D is OOO. https://codereview.chromium.org/1045433002/diff/210001/base/chromeos/memory_pressure_monitor_chromeos.h File base/chromeos/memory_pressure_monitor_chromeos.h (right): https://codereview.chromium.org/1045433002/diff/210001/base/chromeos/memory_pressure_monitor_chromeos.h#newcode26 base/chromeos/memory_pressure_monitor_chromeos.h:26: class ...
5 years, 8 months ago (2015-04-08 22:09:04 UTC) #11
oshima
bots are having compilation errors. Could you please look into it?
5 years, 8 months ago (2015-04-09 00:46:48 UTC) #12
oshima
bots are having compilation errors. Could you please look into it?
5 years, 8 months ago (2015-04-09 00:46:48 UTC) #13
dmichael (off chromium)
Sorry about that, should be good now. Or you can punt to skuhne, who should ...
5 years, 8 months ago (2015-04-10 16:16:15 UTC) #16
oshima
Yeah, I'll leave this to skuhne@, just in case he has some opinion about naming, ...
5 years, 8 months ago (2015-04-10 19:59:29 UTC) #17
Mr4D (OOO till 08-26)
Great! Only a few nits! https://codereview.chromium.org/1045433002/diff/290001/chrome/browser/chromeos/memory/oom_priority_manager.cc File chrome/browser/chromeos/memory/oom_priority_manager.cc (right): https://codereview.chromium.org/1045433002/diff/290001/chrome/browser/chromeos/memory/oom_priority_manager.cc#newcode108 chrome/browser/chromeos/memory/oom_priority_manager.cc:108: base::MemoryPressureMonitorChromeOS* GetMemoryPressureMonitor() { Why ...
5 years, 8 months ago (2015-04-13 15:10:52 UTC) #18
dmichael (off chromium)
Comments addressed, thanks! https://codereview.chromium.org/1045433002/diff/290001/chrome/browser/chromeos/memory/oom_priority_manager.cc File chrome/browser/chromeos/memory/oom_priority_manager.cc (right): https://codereview.chromium.org/1045433002/diff/290001/chrome/browser/chromeos/memory/oom_priority_manager.cc#newcode108 chrome/browser/chromeos/memory/oom_priority_manager.cc:108: base::MemoryPressureMonitorChromeOS* GetMemoryPressureMonitor() { On 2015/04/13 15:10:51, ...
5 years, 8 months ago (2015-04-13 21:02:16 UTC) #20
Mr4D (OOO till 08-26)
Thanks for doing this! lgtm
5 years, 8 months ago (2015-04-13 23:54:18 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1045433002/310001
5 years, 8 months ago (2015-04-14 00:19:39 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/56073)
5 years, 8 months ago (2015-04-14 00:51:42 UTC) #25
dmichael (off chromium)
+thestig for base/ OWNERS, avi for content/ OWNERS
5 years, 8 months ago (2015-04-14 15:21:13 UTC) #27
Avi (use Gerrit)
LGTM
5 years, 8 months ago (2015-04-14 16:18:38 UTC) #28
Lei Zhang
lgtm
5 years, 8 months ago (2015-04-14 19:10:51 UTC) #29
dmichael (off chromium)
+jamescook for chrome/browser/chromeos/memory
5 years, 8 months ago (2015-04-14 19:36:56 UTC) #31
James Cook
c/b/chromeos/memory LGTM
5 years, 8 months ago (2015-04-15 01:54:46 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1045433002/310001
5 years, 8 months ago (2015-04-15 14:59:27 UTC) #34
commit-bot: I haz the power
Committed patchset #13 (id:310001)
5 years, 8 months ago (2015-04-15 16:07:39 UTC) #35
commit-bot: I haz the power
5 years, 8 months ago (2015-04-15 16:08:24 UTC) #36
Message was sent while issue was closed.
Patchset 13 (id:??) landed as
https://crrev.com/6d5c49f04dc84c1a8472fe3e2357dda3d80ab6f9
Cr-Commit-Position: refs/heads/master@{#325253}

Powered by Google App Engine
This is Rietveld 408576698