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

Issue 1124163003: Rename OS-specific MemoryPressureMonitor implementations. (Closed)

Created:
5 years, 7 months ago by chrisha
Modified:
5 years, 7 months ago
CC:
chromium-reviews, jam, gavinp+memory_chromium.org, darin-cc_chromium.org, oshima+watch_chromium.org, erikwright+watch_chromium.org, stevenjb+watch_chromium.org, tfarina
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Rename OS-specific MemoryPressureMonitor implementations. This is cleanup from https://codereview.chromium.org/1122863005/ BUG=472772 Committed: https://crrev.com/dc837f5038e15031c679cf30163b657bab27affa Cr-Commit-Position: refs/heads/master@{#330032}

Patch Set 1 #

Total comments: 1

Patch Set 2 : Rebase and fix broken inheritance. #

Patch Set 3 : Fix additional references. #

Patch Set 4 : Fix chromeos_switches. #

Total comments: 10

Patch Set 5 : Address grt@'s comments from patchset 4. #

Total comments: 4

Patch Set 6 : Address comments on patchset 5. #

Patch Set 7 : Fix compile error on ChromeOS. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+128 lines, -849 lines) Patch
M base/BUILD.gn View 3 chunks +5 lines, -5 lines 0 comments Download
M base/base.gyp View 2 chunks +2 lines, -2 lines 0 comments Download
M base/base.gypi View 2 chunks +4 lines, -4 lines 0 comments Download
A + base/chromeos/memory_pressure_monitor.h View 1 2 3 4 5 6 6 chunks +16 lines, -10 lines 1 comment Download
A + base/chromeos/memory_pressure_monitor.cc View 1 2 3 4 5 6 9 chunks +26 lines, -18 lines 0 comments Download
D base/chromeos/memory_pressure_monitor_chromeos.h View 1 chunk +0 lines, -113 lines 0 comments Download
D base/chromeos/memory_pressure_monitor_chromeos.cc View 1 chunk +0 lines, -264 lines 0 comments Download
D base/chromeos/memory_pressure_monitor_chromeos_unittest.cc View 1 chunk +0 lines, -164 lines 0 comments Download
A + base/chromeos/memory_pressure_monitor_unittest.cc View 1 2 3 4 5 4 chunks +8 lines, -7 lines 0 comments Download
A + base/mac/memory_pressure_monitor.h View 1 2 3 4 4 chunks +11 lines, -10 lines 0 comments Download
A + base/mac/memory_pressure_monitor.cc View 6 chunks +8 lines, -6 lines 1 comment Download
D base/mac/memory_pressure_monitor_mac.h View 1 1 chunk +0 lines, -62 lines 0 comments Download
D base/mac/memory_pressure_monitor_mac.cc View 1 chunk +0 lines, -76 lines 0 comments Download
D base/mac/memory_pressure_monitor_mac_unittest.cc View 1 chunk +0 lines, -59 lines 0 comments Download
A + base/mac/memory_pressure_monitor_unittest.cc View 2 chunks +17 lines, -15 lines 0 comments Download
M base/memory/memory_pressure_monitor.h View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/memory/oom_priority_manager.cc View 1 2 3 4 5 1 chunk +2 lines, -3 lines 0 comments Download
M chromeos/chromeos_switches.h View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M chromeos/chromeos_switches.cc View 1 2 3 4 5 1 chunk +13 lines, -15 lines 0 comments Download
M content/browser/browser_main_loop.h View 1 2 2 chunks +4 lines, -8 lines 0 comments Download
M content/browser/browser_main_loop.cc View 1 2 3 4 5 5 chunks +7 lines, -6 lines 0 comments Download

Messages

Total messages: 23 (3 generated)
chrisha
PTAL?
5 years, 7 months ago (2015-05-13 22:12:11 UTC) #2
Nico
https://codereview.chromium.org/1124163003/diff/1/base/chromeos/memory_pressure_monitor.h File base/chromeos/memory_pressure_monitor.h (right): https://codereview.chromium.org/1124163003/diff/1/base/chromeos/memory_pressure_monitor.h#newcode29 base/chromeos/memory_pressure_monitor.h:29: class BASE_EXPORT MemoryPressureMonitor : public MemoryPressureMonitor { "class BASE_EXPORT ...
5 years, 7 months ago (2015-05-13 22:14:46 UTC) #3
chrisha
Silly me, I don't have Mac or ChromeOS Dev machines so couldn't test compiles locally. ...
5 years, 7 months ago (2015-05-13 23:04:25 UTC) #4
grt (UTC plus 2)
https://codereview.chromium.org/1124163003/diff/60001/base/chromeos/memory_pressure_monitor_unittest.cc File base/chromeos/memory_pressure_monitor_unittest.cc (right): https://codereview.chromium.org/1124163003/diff/60001/base/chromeos/memory_pressure_monitor_unittest.cc#newcode48 base/chromeos/memory_pressure_monitor_unittest.cc:48: MemoryPressureMonitor::THRESHOLD_DEFAULT), is "MemoryPressureMonitor::" needed? https://codereview.chromium.org/1124163003/diff/60001/base/mac/memory_pressure_monitor.h File base/mac/memory_pressure_monitor.h (right): https://codereview.chromium.org/1124163003/diff/60001/base/mac/memory_pressure_monitor.h#newcode5 ...
5 years, 7 months ago (2015-05-14 14:07:41 UTC) #5
chrisha
Okay... addressed grt@'s comments, and the trybots are now green. Another look? https://codereview.chromium.org/1124163003/diff/60001/base/chromeos/memory_pressure_monitor_unittest.cc File base/chromeos/memory_pressure_monitor_unittest.cc ...
5 years, 7 months ago (2015-05-14 15:27:18 UTC) #6
grt (UTC plus 2)
https://codereview.chromium.org/1124163003/diff/60001/chrome/browser/chromeos/memory/oom_priority_manager.cc File chrome/browser/chromeos/memory/oom_priority_manager.cc (right): https://codereview.chromium.org/1124163003/diff/60001/chrome/browser/chromeos/memory/oom_priority_manager.cc#newcode515 chrome/browser/chromeos/memory/oom_priority_manager.cc:515: base::chromeos::MemoryPressureMonitor* monitor = On 2015/05/14 15:27:17, chrisha wrote: > ...
5 years, 7 months ago (2015-05-14 15:30:26 UTC) #7
grt (UTC plus 2)
https://codereview.chromium.org/1124163003/diff/80001/base/chromeos/memory_pressure_monitor_unittest.cc File base/chromeos/memory_pressure_monitor_unittest.cc (right): https://codereview.chromium.org/1124163003/diff/80001/base/chromeos/memory_pressure_monitor_unittest.cc#newcode47 base/chromeos/memory_pressure_monitor_unittest.cc:47: MemoryPressureMonitor(THRESHOLD_DEFAULT), Now that this is less ugly, I see ...
5 years, 7 months ago (2015-05-14 15:40:22 UTC) #8
chrisha
Alright, another round of nits addressed. Another look? +avi for content/browser https://codereview.chromium.org/1124163003/diff/60001/chrome/browser/chromeos/memory/oom_priority_manager.cc File chrome/browser/chromeos/memory/oom_priority_manager.cc (right): ...
5 years, 7 months ago (2015-05-14 19:53:15 UTC) #10
grt (UTC plus 2)
thanks for taking care of the other cleanups i asked for. lgtm.
5 years, 7 months ago (2015-05-14 19:56:09 UTC) #11
Nico
https://codereview.chromium.org/1124163003/diff/120001/base/chromeos/memory_pressure_monitor.h File base/chromeos/memory_pressure_monitor.h (right): https://codereview.chromium.org/1124163003/diff/120001/base/chromeos/memory_pressure_monitor.h#newcode29 base/chromeos/memory_pressure_monitor.h:29: class BASE_EXPORT MemoryPressureMonitor : public base::MemoryPressureMonitor { Having the ...
5 years, 7 months ago (2015-05-14 20:03:37 UTC) #12
chrisha
On 2015/05/14 20:03:37, Nico wrote: > https://codereview.chromium.org/1124163003/diff/120001/base/chromeos/memory_pressure_monitor.h > File base/chromeos/memory_pressure_monitor.h (right): > > https://codereview.chromium.org/1124163003/diff/120001/base/chromeos/memory_pressure_monitor.h#newcode29 > ...
5 years, 7 months ago (2015-05-14 20:07:35 UTC) #13
Nico
On 2015/05/14 20:07:35, chrisha wrote: > On 2015/05/14 20:03:37, Nico wrote: > > > https://codereview.chromium.org/1124163003/diff/120001/base/chromeos/memory_pressure_monitor.h ...
5 years, 7 months ago (2015-05-14 20:10:06 UTC) #14
Avi (use Gerrit)
lgtm Just a rename? stampity stamp
5 years, 7 months ago (2015-05-14 20:52:26 UTC) #15
chrisha
On 2015/05/14 20:10:06, Nico wrote: > On 2015/05/14 20:07:35, chrisha wrote: > > On 2015/05/14 ...
5 years, 7 months ago (2015-05-14 21:26:08 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1124163003/120001
5 years, 7 months ago (2015-05-15 03:05:05 UTC) #18
commit-bot: I haz the power
Committed patchset #7 (id:120001)
5 years, 7 months ago (2015-05-15 03:09:15 UTC) #19
commit-bot: I haz the power
Patchset 7 (id:??) landed as https://crrev.com/dc837f5038e15031c679cf30163b657bab27affa Cr-Commit-Position: refs/heads/master@{#330032}
5 years, 7 months ago (2015-05-15 03:10:02 UTC) #20
tfarina
https://codereview.chromium.org/1124163003/diff/120001/base/mac/memory_pressure_monitor.cc File base/mac/memory_pressure_monitor.cc (right): https://codereview.chromium.org/1124163003/diff/120001/base/mac/memory_pressure_monitor.cc#newcode5 base/mac/memory_pressure_monitor.cc:5: #include "base/mac/memory_pressure_monitor.h" why did you do that? I'm seeing ...
5 years, 7 months ago (2015-05-20 00:38:54 UTC) #21
chrisha
It was a cleanup request from another CL, referenced in the description. I wasn't aware ...
5 years, 7 months ago (2015-05-20 00:53:36 UTC) #22
Nico
5 years, 7 months ago (2015-05-21 19:37:41 UTC) #23
Message was sent while issue was closed.
Gyp used to check for this, looks like someone removed it:
https://codereview.chromium.org/670063006/

But yeah, that's one of the reasons why we use the _win etc suffices. Maybe just
add that, like I suggested in the first place :-/

Powered by Google App Engine
This is Rietveld 408576698