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

Issue 2462513002: Add Resume logic of Purge+Suspend to TabManager. (Closed)

Created:
4 years, 1 month ago by tasak
Modified:
4 years, 1 month ago
Reviewers:
haraken, chrisha
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add Resume logic of Purge+Suspend to TabManager. - To avoid breaking web, we need to resume a backgrounded renderer that was purged and suspended. (A backgrounded renderer is suspended for 120seconds). After resumed, the renderer is running for 10 seconds and is purged and suspended again. - 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 Committed: https://crrev.com/8241a62d2ba05a3c1d55d0e087986b637658892b Cr-Commit-Position: refs/heads/master@{#429222}

Patch Set 1 #

Total comments: 6

Patch Set 2 : Fixed. #

Total comments: 10

Patch Set 3 : Fixed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+210 lines, -14 lines) Patch
M chrome/browser/memory/tab_manager.h View 1 2 2 chunks +11 lines, -0 lines 0 comments Download
M chrome/browser/memory/tab_manager.cc View 1 2 5 chunks +80 lines, -11 lines 0 comments Download
M chrome/browser/memory/tab_manager_unittest.cc View 1 1 chunk +104 lines, -0 lines 0 comments Download
M chrome/browser/memory/tab_manager_web_contents_data.h View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/memory/tab_manager_web_contents_data.cc View 2 chunks +6 lines, -1 line 0 comments Download
M chrome/browser/memory/tab_manager_web_contents_data_unittest.cc View 1 chunk +5 lines, -2 lines 0 comments Download

Messages

Total messages: 28 (17 generated)
tasak
Would you review this CL? I created this CL from https://codereview.chromium.org/2387603003
4 years, 1 month ago (2016-10-28 05:33:22 UTC) #9
haraken
LGTM https://codereview.chromium.org/2462513002/diff/20001/chrome/browser/memory/tab_manager.h File chrome/browser/memory/tab_manager.h (right): https://codereview.chromium.org/2462513002/diff/20001/chrome/browser/memory/tab_manager.h#newcode277 chrome/browser/memory/tab_manager.h:277: content::WebContents* GetWebContentsByContentsId(int64_t tab_contents_id); GetWebContentsById ? https://codereview.chromium.org/2462513002/diff/20001/chrome/browser/memory/tab_manager.h#newcode280 chrome/browser/memory/tab_manager.h:280: // ...
4 years, 1 month ago (2016-10-28 06:25:48 UTC) #12
tasak
Thank you for review. https://codereview.chromium.org/2462513002/diff/20001/chrome/browser/memory/tab_manager.h File chrome/browser/memory/tab_manager.h (right): https://codereview.chromium.org/2462513002/diff/20001/chrome/browser/memory/tab_manager.h#newcode277 chrome/browser/memory/tab_manager.h:277: content::WebContents* GetWebContentsByContentsId(int64_t tab_contents_id); On 2016/10/28 ...
4 years, 1 month ago (2016-10-28 06:53:43 UTC) #13
tasak
chrisha, would you review this CL? Does this CL seem ok?
4 years, 1 month ago (2016-11-01 03:52:58 UTC) #14
chrisha
lgtm with nits https://codereview.chromium.org/2462513002/diff/40001/chrome/browser/memory/tab_manager.cc File chrome/browser/memory/tab_manager.cc (right): https://codereview.chromium.org/2462513002/diff/40001/chrome/browser/memory/tab_manager.cc#newcode430 chrome/browser/memory/tab_manager.cc:430: TabStripModel* model; = nullptr https://codereview.chromium.org/2462513002/diff/40001/chrome/browser/memory/tab_manager.cc#newcode713 chrome/browser/memory/tab_manager.cc:713: ...
4 years, 1 month ago (2016-11-01 21:22:56 UTC) #15
tasak
Thank you for review. https://codereview.chromium.org/2462513002/diff/40001/chrome/browser/memory/tab_manager.cc File chrome/browser/memory/tab_manager.cc (right): https://codereview.chromium.org/2462513002/diff/40001/chrome/browser/memory/tab_manager.cc#newcode430 chrome/browser/memory/tab_manager.cc:430: TabStripModel* model; On 2016/11/01 21:22:56, ...
4 years, 1 month ago (2016-11-02 04:19:47 UTC) #18
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/2462513002/60001
4 years, 1 month ago (2016-11-02 06:28:19 UTC) #23
commit-bot: I haz the power
Committed patchset #3 (id:60001)
4 years, 1 month ago (2016-11-02 06:32:38 UTC) #24
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/8241a62d2ba05a3c1d55d0e087986b637658892b Cr-Commit-Position: refs/heads/master@{#429222}
4 years, 1 month ago (2016-11-02 06:35:00 UTC) #26
kjellander_chromium
A revert of this CL (patchset #3 id:60001) has been created in https://codereview.chromium.org/2470073002/ by kjellander@chromium.org. ...
4 years, 1 month ago (2016-11-02 08:12:27 UTC) #27
tasak
4 years, 1 month ago (2016-11-02 09:06:49 UTC) #28
Message was sent while issue was closed.
On 2016/11/02 08:12:27, kjellander_chromium wrote:
> A revert of this CL (patchset #3 id:60001) has been created in
> https://codereview.chromium.org/2470073002/ by mailto:kjellander@chromium.org.
> 
> The reason for reverting is: Reliably breaks Linux ChromiumOS Tests (1):
>
https://build.chromium.org/p/chromium.chromiumos/builders/Linux%20ChromiumOS%...
> and Linux ChromiumOS Tests (dbg)(1):
>
https://build.chromium.org/p/chromium.chromiumos/builders/Linux%20ChromiumOS%....

Before applying the revert patch, Linux%20ChromiumOS%20Tests%20%281%29 became
green:
https://build.chromium.org/p/chromium.chromiumos/builders/Linux%20ChromiumOS%...

So I would like to ask the reason why my patch causes the issue.
As far as I understand, my patch is disabled by default by the switch:
--purge-and-suspend-time.

Powered by Google App Engine
This is Rietveld 408576698