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

Issue 2773273002: Last_n: do not save snapshot of custom tabs. (Closed)

Created:
3 years, 9 months ago by carlosk
Modified:
3 years, 8 months ago
Reviewers:
Yusuf, gone, dewittj
CC:
chromium-reviews, dewittj+watch_chromium.org, fgorski+watch_chromium.org, romax+watch_chromium.org, petewil+watch_chromium.org, chili+watch_chromium.org, agrieve+watch_chromium.org, dimich+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Last_n: do not save snapshot of custom tabs. Custom tabs are run almost exactly as regular tabs and last_n was saving snapshots of them when they were being hidden. This is not the right thing to do because these tabs are tabs are generally short lived unless they are transferred into Chrome by the user. This change adds the ability for native code to check if an Android tab is a custom tab and uses this new functionality to avoid saving last_n snapshots if that's the case. BUG=636048 Review-Url: https://codereview.chromium.org/2773273002 Cr-Commit-Position: refs/heads/master@{#460242} Committed: https://chromium.googlesource.com/chromium/src/+/6619bb4ebd6d8a47b7a0a0185d86bc90d7f80f56

Patch Set 1 #

Total comments: 9

Patch Set 2 : Renamed method; added custom tab checks to tests. #

Messages

Total messages: 25 (13 generated)
carlosk
dewittj@: PTAL at chrome/browser/android/offline_pages/ files. dfalcantara@: PTAL at remaining chrome/browser/ and chrome/android files yusufo@: PTAL ...
3 years, 8 months ago (2017-03-27 19:51:41 UTC) #4
dewittj
https://codereview.chromium.org/2773273002/diff/1/chrome/browser/android/offline_pages/offline_page_utils.h File chrome/browser/android/offline_pages/offline_page_utils.h (right): https://codereview.chromium.org/2773273002/diff/1/chrome/browser/android/offline_pages/offline_page_utils.h#newcode73 chrome/browser/android/offline_pages/offline_page_utils.h:73: static bool IsCurrentlyACustomTab(content::WebContents* web_contents); nit: a web contents isn't ...
3 years, 8 months ago (2017-03-27 20:37:45 UTC) #7
gone
Deferring to Yusuf on everything because he owns custom tabs.
3 years, 8 months ago (2017-03-27 21:35:22 UTC) #8
Yusuf
customtabs related bits in tab_android and Tab.java lgtm Thanks Carlos!
3 years, 8 months ago (2017-03-27 21:42:45 UTC) #9
gone
OWNERS lgtm https://codereview.chromium.org/2773273002/diff/1/chrome/browser/android/offline_pages/offline_page_utils.h File chrome/browser/android/offline_pages/offline_page_utils.h (right): https://codereview.chromium.org/2773273002/diff/1/chrome/browser/android/offline_pages/offline_page_utils.h#newcode73 chrome/browser/android/offline_pages/offline_page_utils.h:73: static bool IsCurrentlyACustomTab(content::WebContents* web_contents); On 2017/03/27 20:37:45, ...
3 years, 8 months ago (2017-03-27 22:22:10 UTC) #10
Yusuf
https://codereview.chromium.org/2773273002/diff/1/chrome/browser/android/offline_pages/recent_tab_helper_unittest.cc File chrome/browser/android/offline_pages/recent_tab_helper_unittest.cc (right): https://codereview.chromium.org/2773273002/diff/1/chrome/browser/android/offline_pages/recent_tab_helper_unittest.cc#newcode412 chrome/browser/android/offline_pages/recent_tab_helper_unittest.cc:412: On 2017/03/27 22:22:10, dfalcantara (load balance plz) wrote: > ...
3 years, 8 months ago (2017-03-27 22:28:27 UTC) #11
carlosk
Thanks! https://codereview.chromium.org/2773273002/diff/1/chrome/browser/android/offline_pages/offline_page_utils.h File chrome/browser/android/offline_pages/offline_page_utils.h (right): https://codereview.chromium.org/2773273002/diff/1/chrome/browser/android/offline_pages/offline_page_utils.h#newcode73 chrome/browser/android/offline_pages/offline_page_utils.h:73: static bool IsCurrentlyACustomTab(content::WebContents* web_contents); On 2017/03/27 22:22:10, dfalcantara ...
3 years, 8 months ago (2017-03-28 02:00:32 UTC) #14
dewittj
lgtm
3 years, 8 months ago (2017-03-28 16:44:45 UTC) #17
Yusuf
https://codereview.chromium.org/2773273002/diff/1/chrome/browser/android/offline_pages/recent_tab_helper_unittest.cc File chrome/browser/android/offline_pages/recent_tab_helper_unittest.cc (right): https://codereview.chromium.org/2773273002/diff/1/chrome/browser/android/offline_pages/recent_tab_helper_unittest.cc#newcode412 chrome/browser/android/offline_pages/recent_tab_helper_unittest.cc:412: On 2017/03/28 02:00:32, carlosk wrote: > On 2017/03/27 22:28:27, ...
3 years, 8 months ago (2017-03-28 17:17:54 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/2773273002/20001
3 years, 8 months ago (2017-03-28 23:23:48 UTC) #21
carlosk
Thanks. https://codereview.chromium.org/2773273002/diff/1/chrome/browser/android/offline_pages/recent_tab_helper_unittest.cc File chrome/browser/android/offline_pages/recent_tab_helper_unittest.cc (right): https://codereview.chromium.org/2773273002/diff/1/chrome/browser/android/offline_pages/recent_tab_helper_unittest.cc#newcode412 chrome/browser/android/offline_pages/recent_tab_helper_unittest.cc:412: On 2017/03/28 17:17:54, Yusuf wrote: > On 2017/03/28 ...
3 years, 8 months ago (2017-03-28 23:26:07 UTC) #22
commit-bot: I haz the power
3 years, 8 months ago (2017-03-28 23:52:04 UTC) #25
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/6619bb4ebd6d8a47b7a0a0185d86...

Powered by Google App Engine
This is Rietveld 408576698