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

Issue 2735993002: memory_coordinator: Discard tabs under critical memory condition (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/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

memory_coordinator: Discard tabs under critical memory condition When the next memory condition is CRITICAL, ask the delegate (TabManager) to discard a tab. BUG=689363 Review-Url: https://codereview.chromium.org/2735993002 Cr-Commit-Position: refs/heads/master@{#456314} Committed: https://chromium.googlesource.com/chromium/src/+/2f0045d8cd5a0555c96cb1844953cb81b6f13bdc

Patch Set 1 #

Total comments: 6

Patch Set 2 : Simplified #

Unified diffs Side-by-side diffs Delta from patch set Stats (+53 lines, -5 lines) Patch
M content/browser/memory/memory_condition_observer.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/memory/memory_coordinator_impl.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/memory/memory_coordinator_impl.cc View 1 2 chunks +5 lines, -1 line 0 comments Download
M content/browser/memory/memory_coordinator_impl_unittest.cc View 1 2 chunks +46 lines, -4 lines 0 comments Download

Messages

Total messages: 17 (9 generated)
bashi
This is a simple approach to connect tab discarding with memory coordinator. What do you ...
3 years, 9 months ago (2017-03-07 07:51:01 UTC) #2
haraken
LGTM with comments. https://codereview.chromium.org/2735993002/diff/1/chrome/browser/memory/tab_manager.h File chrome/browser/memory/tab_manager.h (right): https://codereview.chromium.org/2735993002/diff/1/chrome/browser/memory/tab_manager.h#newcode103 chrome/browser/memory/tab_manager.h:103: // a tab is actually discarded. ...
3 years, 9 months ago (2017-03-07 08:04:57 UTC) #3
bashi
(I will address grammatical errors later) https://codereview.chromium.org/2735993002/diff/1/content/browser/memory/memory_coordinator_impl.cc File content/browser/memory/memory_coordinator_impl.cc (right): https://codereview.chromium.org/2735993002/diff/1/content/browser/memory/memory_coordinator_impl.cc#newcode452 content/browser/memory/memory_coordinator_impl.cc:452: if (memory_condition_ != ...
3 years, 9 months ago (2017-03-07 08:14:08 UTC) #4
haraken
On 2017/03/07 08:14:08, bashi wrote: > (I will address grammatical errors later) > > https://codereview.chromium.org/2735993002/diff/1/content/browser/memory/memory_coordinator_impl.cc ...
3 years, 9 months ago (2017-03-07 08:22:23 UTC) #5
bashi
Simplified the CL. Instead of scheduling another task, just call DiscardTab() in UpdateConditionIfNeeded() when the ...
3 years, 9 months ago (2017-03-10 04:53:20 UTC) #8
haraken
On 2017/03/10 04:53:20, bashi wrote: > Simplified the CL. Instead of scheduling another task, just ...
3 years, 9 months ago (2017-03-10 07:50:05 UTC) #12
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/2735993002/20001
3 years, 9 months ago (2017-03-13 00:18:08 UTC) #14
commit-bot: I haz the power
3 years, 9 months ago (2017-03-13 01:10:33 UTC) #17
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/2f0045d8cd5a0555c96cb1844953...

Powered by Google App Engine
This is Rietveld 408576698