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

Issue 1427613002: [TabManager] Move remaining discard logic from TabStripModel to TabManager. (Closed)

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

Description

[TabManager] Move remaining discard logic from TabStripModel to TabManager. This CL removes the remaining code related to discarding from TabStripModel to TabManager. It also cleans up the API exposed for discarding. Note that we still have one pending code in browser.cc that I'll investigate independently, as I'm not even convinced of it's usefulness. BUG=539504 Committed: https://crrev.com/f6877bd6d5adfec08799077baa3781bc41b3c12e Cr-Commit-Position: refs/heads/master@{#357115}

Patch Set 1 : #

Total comments: 6

Patch Set 2 : sky@ comments. #

Patch Set 3 : Make WebContentsData public. #

Total comments: 2

Patch Set 4 : chrisha@ comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+159 lines, -201 lines) Patch
M chrome/browser/memory/tab_manager.h View 1 2 3 chunks +12 lines, -2 lines 0 comments Download
M chrome/browser/memory/tab_manager.cc View 1 2 3 7 chunks +28 lines, -11 lines 0 comments Download
M chrome/browser/memory/tab_manager_browsertest.cc View 3 chunks +17 lines, -34 lines 0 comments Download
M chrome/browser/memory/tab_manager_unittest.cc View 7 chunks +19 lines, -25 lines 0 comments Download
M chrome/browser/memory/tab_manager_web_contents_data.h View 1 2 chunks +42 lines, -42 lines 0 comments Download
M chrome/browser/memory/tab_manager_web_contents_data.cc View 1 1 chunk +40 lines, -74 lines 0 comments Download
M chrome/browser/ui/browser.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/tabs/tab_strip_model.cc View 4 chunks +0 lines, -12 lines 0 comments Download

Messages

Total messages: 18 (9 generated)
Georges Khalil
chrisha@, sky@, PTAL.
5 years, 1 month ago (2015-10-27 18:09:43 UTC) #6
sky
https://codereview.chromium.org/1427613002/diff/60001/chrome/browser/memory/tab_manager.cc File chrome/browser/memory/tab_manager.cc (right): https://codereview.chromium.org/1427613002/diff/60001/chrome/browser/memory/tab_manager.cc#newcode232 chrome/browser/memory/tab_manager.cc:232: WebContentsData::CreateForWebContents(contents); Is this necessary? Doesn't GetWebContentsData() implicitly create? https://codereview.chromium.org/1427613002/diff/60001/chrome/browser/memory/tab_manager_web_contents_data.cc ...
5 years, 1 month ago (2015-10-27 21:16:46 UTC) #7
Georges Khalil
sky@, PTAnL. https://codereview.chromium.org/1427613002/diff/60001/chrome/browser/memory/tab_manager.cc File chrome/browser/memory/tab_manager.cc (right): https://codereview.chromium.org/1427613002/diff/60001/chrome/browser/memory/tab_manager.cc#newcode232 chrome/browser/memory/tab_manager.cc:232: WebContentsData::CreateForWebContents(contents); On 2015/10/27 21:16:46, sky wrote: > ...
5 years, 1 month ago (2015-10-30 14:17:45 UTC) #8
sky
LGTM
5 years, 1 month ago (2015-10-30 15:14:38 UTC) #11
chrisha
This is much cleaner! lgtm https://codereview.chromium.org/1427613002/diff/140001/chrome/browser/memory/tab_manager.cc File chrome/browser/memory/tab_manager.cc (right): https://codereview.chromium.org/1427613002/diff/140001/chrome/browser/memory/tab_manager.cc#newcode235 chrome/browser/memory/tab_manager.cc:235: auto data = GetWebContentsData(contents); ...
5 years, 1 month ago (2015-10-30 15:24:40 UTC) #12
Georges Khalil
Thanks to both of you. Sending it to CQ. https://codereview.chromium.org/1427613002/diff/140001/chrome/browser/memory/tab_manager.cc File chrome/browser/memory/tab_manager.cc (right): https://codereview.chromium.org/1427613002/diff/140001/chrome/browser/memory/tab_manager.cc#newcode235 chrome/browser/memory/tab_manager.cc:235: ...
5 years, 1 month ago (2015-10-30 15:30:05 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1427613002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1427613002/160001
5 years, 1 month ago (2015-10-30 15:30:37 UTC) #16
commit-bot: I haz the power
Committed patchset #4 (id:160001)
5 years, 1 month ago (2015-10-30 16:10:44 UTC) #17
commit-bot: I haz the power
5 years, 1 month ago (2015-10-30 16:11:20 UTC) #18
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/f6877bd6d5adfec08799077baa3781bc41b3c12e
Cr-Commit-Position: refs/heads/master@{#357115}

Powered by Google App Engine
This is Rietveld 408576698