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

Issue 2757653003: memory coordinator: Delay setting browsers memory state if needed (Closed)

Created:
3 years, 9 months ago by bashi
Modified:
3 years, 9 months ago
Reviewers:
haraken, chrisha
CC:
chromium-reviews, jam, darin-cc_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

memory coordinator: Delay setting browsers memory state if needed Before this CL memory coordinator ignored browser's memory state change until |minimum_state_transition_period_| is passed. This behavior caused inconsistency between the current memory pressure and the browsers state. For example, the browser's memory state could remain THROTTLED state when memory condition is quickly changed from CRITICAL to NORMAL. The browser's state should be changed to NORMAL after |minimum_state_transition_period_| is passed. BUG=696844 Review-Url: https://codereview.chromium.org/2757653003 Cr-Commit-Position: refs/heads/master@{#458309} Committed: https://chromium.googlesource.com/chromium/src/+/ff04f9a412991a4d83c2bf5422c6489d7ed086e1

Patch Set 1 #

Total comments: 4

Patch Set 2 : comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+64 lines, -3 lines) Patch
M content/browser/memory/memory_coordinator_impl.h View 1 5 chunks +13 lines, -0 lines 0 comments Download
M content/browser/memory/memory_coordinator_impl.cc View 1 4 chunks +23 lines, -3 lines 0 comments Download
M content/browser/memory/memory_coordinator_impl_unittest.cc View 1 2 chunks +28 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (14 generated)
bashi
PTAL
3 years, 9 months ago (2017-03-17 05:07:50 UTC) #6
haraken
LGTM https://codereview.chromium.org/2757653003/diff/1/content/browser/memory/memory_coordinator_impl.cc File content/browser/memory/memory_coordinator_impl.cc (right): https://codereview.chromium.org/2757653003/diff/1/content/browser/memory/memory_coordinator_impl.cc#newcode429 content/browser/memory/memory_coordinator_impl.cc:429: base::TimeDelta::FromSeconds(1); Why + 1 second?
3 years, 9 months ago (2017-03-17 09:54:36 UTC) #7
chrisha
https://codereview.chromium.org/2757653003/diff/1/content/browser/memory/memory_coordinator_impl.h File content/browser/memory/memory_coordinator_impl.h (right): https://codereview.chromium.org/2757653003/diff/1/content/browser/memory/memory_coordinator_impl.h#newcode119 content/browser/memory/memory_coordinator_impl.h:119: virtual base::TimeTicks Now(); Do we want to use the ...
3 years, 9 months ago (2017-03-20 19:30:29 UTC) #8
bashi
https://codereview.chromium.org/2757653003/diff/1/content/browser/memory/memory_coordinator_impl.cc File content/browser/memory/memory_coordinator_impl.cc (right): https://codereview.chromium.org/2757653003/diff/1/content/browser/memory/memory_coordinator_impl.cc#newcode429 content/browser/memory/memory_coordinator_impl.cc:429: base::TimeDelta::FromSeconds(1); On 2017/03/17 09:54:36, haraken wrote: > > Why ...
3 years, 9 months ago (2017-03-21 04:29:32 UTC) #13
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/2757653003/20001
3 years, 9 months ago (2017-03-21 04:30:01 UTC) #16
commit-bot: I haz the power
3 years, 9 months ago (2017-03-21 04:39:21 UTC) #20
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/ff04f9a412991a4d83c2bf5422c6...

Powered by Google App Engine
This is Rietveld 408576698