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

Issue 2278773002: Modify RecentTabHelper to be always-on and observe the loading of the pages. (Closed)

Created:
4 years, 4 months ago by Dmitry Titov
Modified:
4 years, 3 months ago
CC:
chromium-reviews, romax+watch_chromium.org, fgorski+watch_chromium.org, dewittj+watch_chromium.org, petewil+watch_chromium.org, chili+watch_chromium.org, dimich+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Modify RecentTabHelper to be always-on and observe the loading of the pages. Expose is_page_ready_for_snapshot() on it which is set when the page can be successfully captured. Move the feature flag check from creating the tab helper to before the actual snapshot. BUG=630817 Committed: https://crrev.com/9ee7a4109cbc763067538c360c36ff2e1ba3ee13 Cr-Commit-Position: refs/heads/master@{#414509}

Patch Set 1 #

Total comments: 17

Patch Set 2 : cr feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+71 lines, -35 lines) Patch
M chrome/browser/android/offline_pages/recent_tab_helper.h View 1 2 chunks +13 lines, -2 lines 0 comments Download
M chrome/browser/android/offline_pages/recent_tab_helper.cc View 1 5 chunks +35 lines, -29 lines 0 comments Download
M chrome/browser/android/offline_pages/recent_tab_helper_unittest.cc View 1 6 chunks +22 lines, -1 line 0 comments Download
M chrome/browser/ui/tab_helpers.cc View 2 chunks +1 line, -3 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 22 (12 generated)
Dmitry Titov
fgorski: please look at offline pages avi: please do an OWNER's check of tab_helpers.cc
4 years, 4 months ago (2016-08-24 22:27:26 UTC) #4
Dmitry Titov
R:-fgorski +dewittj
4 years, 4 months ago (2016-08-24 22:32:48 UTC) #6
dewittj
https://codereview.chromium.org/2278773002/diff/1/chrome/browser/android/offline_pages/recent_tab_helper.cc File chrome/browser/android/offline_pages/recent_tab_helper.cc (left): https://codereview.chromium.org/2278773002/diff/1/chrome/browser/android/offline_pages/recent_tab_helper.cc#oldcode110 chrome/browser/android/offline_pages/recent_tab_helper.cc:110: weak_ptr_factory_.InvalidateWeakPtrs(); Why is this gone? It seems like there ...
4 years, 4 months ago (2016-08-24 23:01:40 UTC) #7
Dmitry Titov
ptal. https://codereview.chromium.org/2278773002/diff/1/chrome/browser/android/offline_pages/recent_tab_helper.cc File chrome/browser/android/offline_pages/recent_tab_helper.cc (left): https://codereview.chromium.org/2278773002/diff/1/chrome/browser/android/offline_pages/recent_tab_helper.cc#oldcode110 chrome/browser/android/offline_pages/recent_tab_helper.cc:110: weak_ptr_factory_.InvalidateWeakPtrs(); On 2016/08/24 23:01:39, dewittj wrote: > Why ...
4 years, 4 months ago (2016-08-25 00:36:09 UTC) #11
dewittj
lgtm https://codereview.chromium.org/2278773002/diff/1/chrome/browser/android/offline_pages/recent_tab_helper.cc File chrome/browser/android/offline_pages/recent_tab_helper.cc (right): https://codereview.chromium.org/2278773002/diff/1/chrome/browser/android/offline_pages/recent_tab_helper.cc#newcode82 chrome/browser/android/offline_pages/recent_tab_helper.cc:82: snapshot_controller_->Stop(); // It is reset when navigation commits. ...
4 years, 4 months ago (2016-08-25 01:35:22 UTC) #13
Dmitry Titov
Avi, ptal. This is one of the last pieces of Download feature that we try ...
4 years, 3 months ago (2016-08-25 14:27:09 UTC) #16
Avi (use Gerrit)
Go for it! LGTM
4 years, 3 months ago (2016-08-25 18:02:56 UTC) #17
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/2278773002/20001
4 years, 3 months ago (2016-08-25 18:31:28 UTC) #19
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 3 months ago (2016-08-25 19:34:35 UTC) #20
commit-bot: I haz the power
4 years, 3 months ago (2016-08-25 19:37:47 UTC) #22
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/9ee7a4109cbc763067538c360c36ff2e1ba3ee13
Cr-Commit-Position: refs/heads/master@{#414509}

Powered by Google App Engine
This is Rietveld 408576698