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

Issue 2167843004: Discardable property support on TabManager (Closed)

Created:
4 years, 5 months ago by Anderson Silva
Modified:
4 years, 5 months ago
Reviewers:
Georges Khalil, chrisha
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Discardable property support on TabManager BUG=621070 Committed: https://crrev.com/8665371960b29c5034562a3f65e51106c6a362b1 Cr-Commit-Position: refs/heads/master@{#407258}

Patch Set 1 #

Total comments: 4

Patch Set 2 : new discardable functions on TabManager #

Total comments: 4

Patch Set 3 : . #

Total comments: 12

Patch Set 4 : nits fixed #

Patch Set 5 : include AutoDiscardable check on CanDiscard plus tests #

Total comments: 2

Patch Set 6 : added auto discardable to TabStats #

Total comments: 1

Patch Set 7 : fixed nit on comment #

Total comments: 1

Patch Set 8 : change to auto-discardable #

Unified diffs Side-by-side diffs Delta from patch set Stats (+180 lines, -9 lines) Patch
M chrome/browser/memory/tab_manager.h View 1 2 3 4 5 6 7 2 chunks +16 lines, -0 lines 0 comments Download
M chrome/browser/memory/tab_manager.cc View 1 2 3 4 5 6 7 3 chunks +24 lines, -0 lines 0 comments Download
M chrome/browser/memory/tab_manager_browsertest.cc View 1 2 3 4 5 6 7 1 chunk +40 lines, -0 lines 0 comments Download
M chrome/browser/memory/tab_manager_observer.h View 1 2 3 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/memory/tab_manager_observer.cc View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/memory/tab_manager_observer_browsertest.cc View 1 2 4 chunks +53 lines, -1 line 0 comments Download
M chrome/browser/memory/tab_manager_unittest.cc View 1 2 3 4 5 3 chunks +10 lines, -0 lines 0 comments Download
M chrome/browser/memory/tab_manager_web_contents_data.h View 1 2 3 4 5 6 7 2 chunks +9 lines, -0 lines 0 comments Download
M chrome/browser/memory/tab_manager_web_contents_data.cc View 1 2 3 chunks +17 lines, -7 lines 0 comments Download
M chrome/browser/memory/tab_stats.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/memory/tab_stats.cc View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 38 (22 generated)
Anderson Silva
ptal
4 years, 5 months ago (2016-07-20 22:21:27 UTC) #3
Georges Khalil
First round. https://codereview.chromium.org/2167843004/diff/1/chrome/browser/memory/tab_manager.h File chrome/browser/memory/tab_manager.h (right): https://codereview.chromium.org/2167843004/diff/1/chrome/browser/memory/tab_manager.h#newcode132 chrome/browser/memory/tab_manager.h:132: FRIEND_TEST_ALL_PREFIXES(TabManagerObserverTest, OnDiscardableStateChange); Add Is/Set TabDiscardable functions, and ...
4 years, 5 months ago (2016-07-21 20:51:52 UTC) #8
Anderson Silva
https://codereview.chromium.org/2167843004/diff/1/chrome/browser/memory/tab_manager.h File chrome/browser/memory/tab_manager.h (right): https://codereview.chromium.org/2167843004/diff/1/chrome/browser/memory/tab_manager.h#newcode132 chrome/browser/memory/tab_manager.h:132: FRIEND_TEST_ALL_PREFIXES(TabManagerObserverTest, OnDiscardableStateChange); On 2016/07/21 20:51:51, Georges Khalil wrote: > ...
4 years, 5 months ago (2016-07-21 21:14:49 UTC) #9
Georges Khalil
Looking good. One change throughout: Replace Discardable with AutoDiscardable. https://codereview.chromium.org/2167843004/diff/20001/chrome/browser/memory/tab_manager.h File chrome/browser/memory/tab_manager.h (right): https://codereview.chromium.org/2167843004/diff/20001/chrome/browser/memory/tab_manager.h#newcode132 chrome/browser/memory/tab_manager.h:132: ...
4 years, 5 months ago (2016-07-21 21:21:41 UTC) #10
Anderson Silva
cuanged to AutoDiscardable. https://codereview.chromium.org/2167843004/diff/20001/chrome/browser/memory/tab_manager.h File chrome/browser/memory/tab_manager.h (right): https://codereview.chromium.org/2167843004/diff/20001/chrome/browser/memory/tab_manager.h#newcode132 chrome/browser/memory/tab_manager.h:132: void SetDiscardableState(content::WebContents* contents, bool state); On ...
4 years, 5 months ago (2016-07-21 22:16:45 UTC) #11
Georges Khalil
Mostly nits, looking good. I'll wait for Chris to sign off on this as well. ...
4 years, 5 months ago (2016-07-22 15:07:57 UTC) #16
Georges Khalil
On 2016/07/22 15:07:57, Georges Khalil wrote: > Mostly nits, looking good. > > I'll wait ...
4 years, 5 months ago (2016-07-22 15:08:27 UTC) #17
Anderson Silva
fixed nits https://codereview.chromium.org/2167843004/diff/40001/chrome/browser/memory/tab_manager.h File chrome/browser/memory/tab_manager.h (right): https://codereview.chromium.org/2167843004/diff/40001/chrome/browser/memory/tab_manager.h#newcode131 chrome/browser/memory/tab_manager.h:131: // Returns true if the tab is ...
4 years, 5 months ago (2016-07-22 15:34:52 UTC) #18
Anderson Silva
included test
4 years, 5 months ago (2016-07-22 16:38:28 UTC) #20
Georges Khalil
You also need to add this property to TabStats and use it in CompareTabStats. I ...
4 years, 5 months ago (2016-07-22 17:43:08 UTC) #24
Anderson Silva
included auto discardable on TabStats. https://codereview.chromium.org/2167843004/diff/80001/chrome/browser/memory/tab_manager_browsertest.cc File chrome/browser/memory/tab_manager_browsertest.cc (right): https://codereview.chromium.org/2167843004/diff/80001/chrome/browser/memory/tab_manager_browsertest.cc#newcode401 chrome/browser/memory/tab_manager_browsertest.cc:401: tab_manager->minimum_protection_time_ = base::TimeDelta::FromMinutes(0); On ...
4 years, 5 months ago (2016-07-22 18:29:25 UTC) #25
Georges Khalil
lgtm % nit. https://codereview.chromium.org/2167843004/diff/100001/chrome/browser/memory/tab_manager_browsertest.cc File chrome/browser/memory/tab_manager_browsertest.cc (right): https://codereview.chromium.org/2167843004/diff/100001/chrome/browser/memory/tab_manager_browsertest.cc#newcode425 chrome/browser/memory/tab_manager_browsertest.cc:425: // Shouldn't discard the tab, since ...
4 years, 5 months ago (2016-07-22 18:37:57 UTC) #26
chrisha
s/auto discardable/auto-discardable/ everywhere. Otherwise, lgtm! https://codereview.chromium.org/2167843004/diff/120001/chrome/browser/memory/tab_manager.h File chrome/browser/memory/tab_manager.h (right): https://codereview.chromium.org/2167843004/diff/120001/chrome/browser/memory/tab_manager.h#newcode131 chrome/browser/memory/tab_manager.h:131: // Returns the auto ...
4 years, 5 months ago (2016-07-22 19:16:36 UTC) #27
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/2167843004/140001
4 years, 5 months ago (2016-07-22 20:47:07 UTC) #34
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 5 months ago (2016-07-22 20:52:14 UTC) #36
commit-bot: I haz the power
4 years, 5 months ago (2016-07-22 20:55:47 UTC) #38
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/8665371960b29c5034562a3f65e51106c6a362b1
Cr-Commit-Position: refs/heads/master@{#407258}

Powered by Google App Engine
This is Rietveld 408576698