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

Issue 2389683002: Modify PurgeAndSuspend to see WebContents (Closed)

Created:
4 years, 2 months ago by tasak
Modified:
4 years, 2 months ago
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Modify PurgeAndSuspend to see WebContents - If a background renderer has no media content, the renderer can be purged and suspended. - intent-to-implement-and-ship of background renderer's purge + suspend is https://groups.google.com/a/chromium.org/forum/#!topic/blink-dev/DK189tnM8l4 - one of the documents attached in the above intent is https://docs.google.com/document/d/1EgLimgxWK5DGhptnNVbEGSvVn6Q609ZJaBkLjEPRJvI/edit?usp=sharing - The feature is not enabled by default because purge-and-suspend-time is 0. BUG=635419

Patch Set 1 #

Total comments: 4

Patch Set 2 : Fixed #

Total comments: 9

Patch Set 3 : Fixed #

Total comments: 2

Patch Set 4 : Add unittest #

Unified diffs Side-by-side diffs Delta from patch set Stats (+98 lines, -0 lines) Patch
M chrome/browser/memory/tab_manager.h View 1 2 3 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/memory/tab_manager.cc View 1 2 2 chunks +19 lines, -0 lines 0 comments Download
M chrome/browser/memory/tab_manager_browsertest.cc View 1 2 3 2 chunks +73 lines, -0 lines 0 comments Download

Messages

Total messages: 33 (18 generated)
tasak
Would you review this CL?
4 years, 2 months ago (2016-10-03 06:27:30 UTC) #4
haraken
Looks good on my side. chrisha@ should take a look at this. https://codereview.chromium.org/2389683002/diff/1/chrome/browser/memory/tab_manager.cc File chrome/browser/memory/tab_manager.cc ...
4 years, 2 months ago (2016-10-03 06:32:35 UTC) #6
hajimehoshi
Would you add more description?
4 years, 2 months ago (2016-10-03 06:45:38 UTC) #7
tasak
On 2016/10/03 06:45:38, hajimehoshi wrote: > Would you add more description? Sure. Done.
4 years, 2 months ago (2016-10-03 07:08:28 UTC) #10
tasak
https://codereview.chromium.org/2389683002/diff/1/chrome/browser/memory/tab_manager.cc File chrome/browser/memory/tab_manager.cc (right): https://codereview.chromium.org/2389683002/diff/1/chrome/browser/memory/tab_manager.cc#newcode687 chrome/browser/memory/tab_manager.cc:687: if (web_contents->GetContentsMimeType() == "application/pdf") On 2016/10/03 06:32:35, haraken wrote: ...
4 years, 2 months ago (2016-10-03 07:08:54 UTC) #11
tasak
4 years, 2 months ago (2016-10-04 09:19:19 UTC) #18
tasak
Would you review this CL?
4 years, 2 months ago (2016-10-04 09:19:38 UTC) #19
haraken
LGTM on my side.
4 years, 2 months ago (2016-10-04 09:33:53 UTC) #20
hajimehoshi
non-owner lgtm
4 years, 2 months ago (2016-10-04 09:36:00 UTC) #21
Georges Khalil
LGTM % nits. https://codereview.chromium.org/2389683002/diff/20001/chrome/browser/memory/tab_manager.cc File chrome/browser/memory/tab_manager.cc (right): https://codereview.chromium.org/2389683002/diff/20001/chrome/browser/memory/tab_manager.cc#newcode687 chrome/browser/memory/tab_manager.cc:687: // Do not discard a recently ...
4 years, 2 months ago (2016-10-04 13:28:56 UTC) #22
chrisha
https://codereview.chromium.org/2389683002/diff/20001/chrome/browser/memory/tab_manager.cc File chrome/browser/memory/tab_manager.cc (right): https://codereview.chromium.org/2389683002/diff/20001/chrome/browser/memory/tab_manager.cc#newcode684 chrome/browser/memory/tab_manager.cc:684: if (IsMediaTab(web_contents)) This is the only reason I think ...
4 years, 2 months ago (2016-10-04 21:52:42 UTC) #23
tasak
Thank you for review. https://codereview.chromium.org/2389683002/diff/20001/chrome/browser/memory/tab_manager.cc File chrome/browser/memory/tab_manager.cc (right): https://codereview.chromium.org/2389683002/diff/20001/chrome/browser/memory/tab_manager.cc#newcode684 chrome/browser/memory/tab_manager.cc:684: if (IsMediaTab(web_contents)) On 2016/10/04 21:52:41, ...
4 years, 2 months ago (2016-10-05 05:28:46 UTC) #24
chrisha
Needs a corresponding unittest? https://codereview.chromium.org/2389683002/diff/40001/chrome/browser/memory/tab_manager.cc File chrome/browser/memory/tab_manager.cc (right): https://codereview.chromium.org/2389683002/diff/40001/chrome/browser/memory/tab_manager.cc#newcode690 chrome/browser/memory/tab_manager.cc:690: void TabManager::PurgeAndSuspendBackgroundedTabs() { I didn't ...
4 years, 2 months ago (2016-10-06 13:24:30 UTC) #27
tasak
Thank you for review. https://codereview.chromium.org/2389683002/diff/40001/chrome/browser/memory/tab_manager.cc File chrome/browser/memory/tab_manager.cc (right): https://codereview.chromium.org/2389683002/diff/40001/chrome/browser/memory/tab_manager.cc#newcode690 chrome/browser/memory/tab_manager.cc:690: void TabManager::PurgeAndSuspendBackgroundedTabs() { On 2016/10/06 ...
4 years, 2 months ago (2016-10-07 05:48:42 UTC) #28
tasak
4 years, 2 months ago (2016-10-14 07:14:33 UTC) #33
Since  https://crrev.com/93362955b0109abee326322a952989fd5ee0d0f2 added
CanSuspendBackgroundedRenderer into TabManager, I will close this issue.

Powered by Google App Engine
This is Rietveld 408576698