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

Issue 2711093002: Purge once random minutes(between 30min and 60min) after backgrounded. (Closed)

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

Description

Purge once random minutes(between 30min and 60min) after backgrounded. Design doc: https://docs.google.com/document/d/1L5qRmCwjidiZWKmQRiuqMjZivBWV7XSW9RTypg9XxlI/edit?usp=sharing BUG=635419 Review-Url: https://codereview.chromium.org/2711093002 Cr-Commit-Position: refs/heads/master@{#457386} Committed: https://chromium.googlesource.com/chromium/src/+/e8014f980b6380e690b2e386ac8f39d228419e2f

Patch Set 1 #

Patch Set 2 : s/PurgeAndSuspendState/PurgeState/g #

Patch Set 3 : s/RUNNING/NOT_PURGED/g #

Total comments: 45

Patch Set 4 : Fixed. #

Total comments: 21

Patch Set 5 : Added a browser test. #

Total comments: 19

Patch Set 6 : Updated. #

Total comments: 2

Patch Set 7 : Rebased #

Total comments: 9

Patch Set 8 : Fixed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+288 lines, -276 lines) Patch
M chrome/browser/memory/tab_manager.h View 1 2 3 4 5 6 7 5 chunks +38 lines, -38 lines 0 comments Download
M chrome/browser/memory/tab_manager.cc View 1 2 3 4 5 6 7 13 chunks +82 lines, -101 lines 0 comments Download
M chrome/browser/memory/tab_manager_browsertest.cc View 1 2 3 4 5 1 chunk +101 lines, -0 lines 0 comments Download
M chrome/browser/memory/tab_manager_unittest.cc View 1 2 3 4 5 3 chunks +49 lines, -74 lines 0 comments Download
M chrome/browser/memory/tab_manager_web_contents_data.h View 1 2 3 4 5 2 chunks +16 lines, -18 lines 0 comments Download
M chrome/browser/memory/tab_manager_web_contents_data.cc View 1 2 3 4 2 chunks +2 lines, -24 lines 0 comments Download
M chrome/browser/memory/tab_manager_web_contents_data_unittest.cc View 1 1 chunk +0 lines, -21 lines 0 comments Download

Messages

Total messages: 80 (58 generated)
tasak
Would you review this CL?
3 years, 9 months ago (2017-02-27 11:26:29 UTC) #25
chrisha
https://codereview.chromium.org/2711093002/diff/100001/chrome/browser/memory/tab_manager.cc File chrome/browser/memory/tab_manager.cc (right): https://codereview.chromium.org/2711093002/diff/100001/chrome/browser/memory/tab_manager.cc#newcode91 chrome/browser/memory/tab_manager.cc:91: const unsigned int kRangeOfTimeToFirstPurgeInMinutes = 30; How is this ...
3 years, 9 months ago (2017-02-27 13:31:07 UTC) #26
Wez
https://codereview.chromium.org/2711093002/diff/100001/chrome/browser/memory/tab_manager.cc File chrome/browser/memory/tab_manager.cc (right): https://codereview.chromium.org/2711093002/diff/100001/chrome/browser/memory/tab_manager.cc#newcode90 chrome/browser/memory/tab_manager.cc:90: // backgrounded and in-active. This comment is pretty confusingly ...
3 years, 9 months ago (2017-02-27 22:20:56 UTC) #27
tasak
Thank you for review. https://codereview.chromium.org/2711093002/diff/100001/chrome/browser/memory/tab_manager.cc File chrome/browser/memory/tab_manager.cc (right): https://codereview.chromium.org/2711093002/diff/100001/chrome/browser/memory/tab_manager.cc#newcode90 chrome/browser/memory/tab_manager.cc:90: // backgrounded and in-active. On ...
3 years, 9 months ago (2017-02-28 09:45:44 UTC) #33
Wez
https://codereview.chromium.org/2711093002/diff/100001/chrome/browser/memory/tab_manager.h File chrome/browser/memory/tab_manager.h (right): https://codereview.chromium.org/2711093002/diff/100001/chrome/browser/memory/tab_manager.h#newcode265 chrome/browser/memory/tab_manager.h:265: // - When ActiveTabChaged, the newly activated tab's state ...
3 years, 9 months ago (2017-03-02 02:28:33 UTC) #36
tasak
Thank you for review. https://codereview.chromium.org/2711093002/diff/100001/chrome/browser/memory/tab_manager.h File chrome/browser/memory/tab_manager.h (right): https://codereview.chromium.org/2711093002/diff/100001/chrome/browser/memory/tab_manager.h#newcode265 chrome/browser/memory/tab_manager.h:265: // - When ActiveTabChaged, the ...
3 years, 9 months ago (2017-03-02 09:22:47 UTC) #44
Wez
Apologies for the delayed review, and thanks for addressing my comments - just a few ...
3 years, 9 months ago (2017-03-03 21:06:52 UTC) #45
tasak
Thank you for review. https://codereview.chromium.org/2711093002/diff/140001/chrome/browser/memory/tab_manager.h File chrome/browser/memory/tab_manager.h (right): https://codereview.chromium.org/2711093002/diff/140001/chrome/browser/memory/tab_manager.h#newcode265 chrome/browser/memory/tab_manager.h:265: // value is min_time_to_purge + ...
3 years, 9 months ago (2017-03-06 10:30:19 UTC) #51
Wez
lgtm https://codereview.chromium.org/2711093002/diff/220001/chrome/browser/memory/tab_manager.cc File chrome/browser/memory/tab_manager.cc (right): https://codereview.chromium.org/2711093002/diff/220001/chrome/browser/memory/tab_manager.cc#newcode229 chrome/browser/memory/tab_manager.cc:229: TabStripModel** model) const { On 2017/03/06 10:30:19, tasak ...
3 years, 9 months ago (2017-03-08 02:03:55 UTC) #54
Wez
Sorry about the delay in getting back to this.
3 years, 9 months ago (2017-03-08 02:04:13 UTC) #55
tasak
Thank you for review, wez. chrisha, would you review this CL?
3 years, 9 months ago (2017-03-09 09:36:50 UTC) #56
tasak
chrisha@, would you review this CL?
3 years, 9 months ago (2017-03-15 02:47:39 UTC) #58
haraken
On 2017/03/15 02:47:39, tasak wrote: > chrisha@, would you review this CL? Chris is ooo ...
3 years, 9 months ago (2017-03-15 07:36:08 UTC) #62
tasak
On 2017/03/15 07:36:08, haraken wrote: > On 2017/03/15 02:47:39, tasak wrote: > > chrisha@, would ...
3 years, 9 months ago (2017-03-15 10:09:59 UTC) #63
tasak
georgesak@, would you review this CL? I need lgtm of chrome/browser/memory's OWNER.
3 years, 9 months ago (2017-03-15 10:10:39 UTC) #65
haraken
On 2017/03/15 10:10:39, tasak wrote: > georgesak@, would you review this CL? > > I ...
3 years, 9 months ago (2017-03-15 10:22:45 UTC) #66
haraken
On 2017/03/15 10:22:45, haraken wrote: > On 2017/03/15 10:10:39, tasak wrote: > > georgesak@, would ...
3 years, 9 months ago (2017-03-15 10:23:33 UTC) #67
chrisha
Logic and general layout all looks good to me. Some nits around constants and a ...
3 years, 9 months ago (2017-03-15 17:42:41 UTC) #68
chrisha
(I don't need another round of review for the changes I suggested, so lgtm!)
3 years, 9 months ago (2017-03-15 17:43:09 UTC) #69
tasak
Thank you for review. https://codereview.chromium.org/2711093002/diff/240001/chrome/browser/memory/tab_manager.cc File chrome/browser/memory/tab_manager.cc (right): https://codereview.chromium.org/2711093002/diff/240001/chrome/browser/memory/tab_manager.cc#newcode860 chrome/browser/memory/tab_manager.cc:860: // When ActiveTabChaged, |new_contents| purged ...
3 years, 9 months ago (2017-03-16 04:39:48 UTC) #72
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/2711093002/260001
3 years, 9 months ago (2017-03-16 08:40:31 UTC) #77
commit-bot: I haz the power
3 years, 9 months ago (2017-03-16 09:46:20 UTC) #80
Message was sent while issue was closed.
Committed patchset #8 (id:260001) as
https://chromium.googlesource.com/chromium/src/+/e8014f980b6380e690b2e386ac8f...

Powered by Google App Engine
This is Rietveld 408576698