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

Issue 1332003002: Add option to disallow the discarding of a tab that was previously discarded. (Closed)

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

Description

Add option to disallow the discarding of a tab that was previously discarded. BUG=514340 Committed: https://crrev.com/ff7361126407649f2bcf483ec8789f4717043e16 Cr-Commit-Position: refs/heads/master@{#348701}

Patch Set 1 #

Total comments: 14

Patch Set 2 : sky@ and chrisha@ comments. #

Total comments: 6

Patch Set 3 : sky@ comments. #

Total comments: 7

Patch Set 4 : sky@ comments + fix tests. #

Total comments: 4

Patch Set 5 : sky@ and rkaplow@ comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+242 lines, -77 lines) Patch
M chrome/browser/chrome_browser_main.cc View 1 2 3 4 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/browser/memory/oom_priority_manager.h View 1 2 3 chunks +11 lines, -1 line 0 comments Download
M chrome/browser/memory/oom_priority_manager.cc View 1 2 7 chunks +34 lines, -9 lines 0 comments Download
M chrome/browser/memory/oom_priority_manager_browsertest.cc View 1 2 3 4 5 chunks +29 lines, -27 lines 0 comments Download
M chrome/browser/memory/tab_stats.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/memory/tab_stats.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/browser.cc View 1 2 2 chunks +2 lines, -1 line 0 comments Download
A chrome/browser/ui/tabs/tab_discard_state.h View 1 2 3 1 chunk +52 lines, -0 lines 0 comments Download
A chrome/browser/ui/tabs/tab_discard_state.cc View 1 2 3 1 chunk +67 lines, -0 lines 0 comments Download
M chrome/browser/ui/tabs/tab_strip_model.h View 1 2 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/browser/ui/tabs/tab_strip_model.cc View 1 2 3 4 9 chunks +15 lines, -22 lines 0 comments Download
M chrome/browser/ui/tabs/tab_strip_model_unittest.cc View 1 2 3 5 chunks +12 lines, -11 lines 0 comments Download
M chrome/browser/ui/webui/about_ui.cc View 1 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 1 chunk +10 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (6 generated)
Georges Khalil
rkaplow@chromium.org: Please review changes in histograms.xml sky@chromium.org: Please review changes in chrome/browser/* This allows us ...
5 years, 3 months ago (2015-09-10 17:59:33 UTC) #2
chrisha
https://codereview.chromium.org/1332003002/diff/1/chrome/browser/ui/tabs/tab_strip_model.cc File chrome/browser/ui/tabs/tab_strip_model.cc (right): https://codereview.chromium.org/1332003002/diff/1/chrome/browser/ui/tabs/tab_strip_model.cc#newcode179 chrome/browser/ui/tabs/tab_strip_model.cc:179: int nb_discards() const { return nb_discards_; } Ditto. https://codereview.chromium.org/1332003002/diff/1/chrome/browser/ui/tabs/tab_strip_model.h ...
5 years, 3 months ago (2015-09-10 18:07:43 UTC) #4
sky
https://codereview.chromium.org/1332003002/diff/1/chrome/browser/memory/oom_priority_manager.cc File chrome/browser/memory/oom_priority_manager.cc (right): https://codereview.chromium.org/1332003002/diff/1/chrome/browser/memory/oom_priority_manager.cc#newcode188 chrome/browser/memory/oom_priority_manager.cc:188: bool OomPriorityManager::DiscardTabById(int64 target_web_contents_id) { You allow this to be ...
5 years, 3 months ago (2015-09-10 18:23:48 UTC) #5
Georges Khalil
PTAnL. Note that I added the discard count info in about:discards to help us when ...
5 years, 3 months ago (2015-09-10 20:54:04 UTC) #6
sky
https://codereview.chromium.org/1332003002/diff/1/chrome/browser/memory/oom_priority_manager.cc File chrome/browser/memory/oom_priority_manager.cc (right): https://codereview.chromium.org/1332003002/diff/1/chrome/browser/memory/oom_priority_manager.cc#newcode188 chrome/browser/memory/oom_priority_manager.cc:188: bool OomPriorityManager::DiscardTabById(int64 target_web_contents_id) { On 2015/09/10 20:54:03, Georges Khalil ...
5 years, 3 months ago (2015-09-10 21:54:04 UTC) #7
Georges Khalil
sky@, PTAnL. https://codereview.chromium.org/1332003002/diff/1/chrome/browser/memory/oom_priority_manager.cc File chrome/browser/memory/oom_priority_manager.cc (right): https://codereview.chromium.org/1332003002/diff/1/chrome/browser/memory/oom_priority_manager.cc#newcode188 chrome/browser/memory/oom_priority_manager.cc:188: bool OomPriorityManager::DiscardTabById(int64 target_web_contents_id) { On 2015/09/10 21:54:03, ...
5 years, 3 months ago (2015-09-11 17:44:31 UTC) #10
sky
https://codereview.chromium.org/1332003002/diff/80001/chrome/browser/memory/oom_priority_manager.cc File chrome/browser/memory/oom_priority_manager.cc (right): https://codereview.chromium.org/1332003002/diff/80001/chrome/browser/memory/oom_priority_manager.cc#newcode464 chrome/browser/memory/oom_priority_manager.cc:464: bool OomPriorityManager::CanDiscardTab(int64 target_web_contents_id) const { nit: make position match ...
5 years, 3 months ago (2015-09-11 20:00:35 UTC) #11
rkaplow
https://codereview.chromium.org/1332003002/diff/100001/chrome/browser/chrome_browser_main.cc File chrome/browser/chrome_browser_main.cc (right): https://codereview.chromium.org/1332003002/diff/100001/chrome/browser/chrome_browser_main.cc#newcode1171 chrome/browser/chrome_browser_main.cc:1171: g_browser_process->GetOomPriorityManager()->Start(group_name == suggest using StartsWith https://codereview.chromium.org/1332003002/diff/100001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): ...
5 years, 3 months ago (2015-09-11 21:07:03 UTC) #12
Georges Khalil
sky@, rkaplow@, PTAnL. https://codereview.chromium.org/1332003002/diff/80001/chrome/browser/memory/oom_priority_manager.cc File chrome/browser/memory/oom_priority_manager.cc (right): https://codereview.chromium.org/1332003002/diff/80001/chrome/browser/memory/oom_priority_manager.cc#newcode464 chrome/browser/memory/oom_priority_manager.cc:464: bool OomPriorityManager::CanDiscardTab(int64 target_web_contents_id) const { On ...
5 years, 3 months ago (2015-09-14 18:17:49 UTC) #14
sky
LGTM
5 years, 3 months ago (2015-09-14 19:19:59 UTC) #15
rkaplow
lgtm
5 years, 3 months ago (2015-09-14 20:08:59 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1332003002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1332003002/140001
5 years, 3 months ago (2015-09-14 20:11:01 UTC) #18
commit-bot: I haz the power
Committed patchset #5 (id:140001)
5 years, 3 months ago (2015-09-14 20:17:31 UTC) #19
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/ff7361126407649f2bcf483ec8789f4717043e16 Cr-Commit-Position: refs/heads/master@{#348701}
5 years, 3 months ago (2015-09-14 20:18:05 UTC) #20
commit-bot: I haz the power
5 years, 3 months ago (2015-09-23 12:36:33 UTC) #21
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/ff7361126407649f2bcf483ec8789f4717043e16
Cr-Commit-Position: refs/heads/master@{#348701}

Powered by Google App Engine
This is Rietveld 408576698