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

Issue 2100043004: [Offline pages] Filter out pages cached by different tabs on tab helper (Closed)

Created:
4 years, 5 months ago by fgorski
Modified:
4 years, 5 months ago
Reviewers:
Dmitry Titov
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
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Offline pages] Filter out pages cached by different tabs on tab helper * Updating a tab helper to fetch all offline pages with a given URL and filter out the ones with different Tab IDs * Adds test for that behavior * Refactors GetTabId to OfflinePageUtils * Adds Delegate for getting tab id in OPTabHelper, to fix tests * Updates Client policy for last_n to allow multiple pages for single URL (to handle multiple tabs opening the same page) BUG=622424 R=dimich@chromium.org Committed: https://crrev.com/7a82d3168ecc9779d821f17ff69e6697d38ee8da Cr-Commit-Position: refs/heads/master@{#402563}

Patch Set 1 #

Total comments: 12

Patch Set 2 : Updates based on CR #

Patch Set 3 : Fixing tests, adding test for the selection code, fixing the policy for last_n #

Total comments: 2

Patch Set 4 : Updating comment to address CR #

Unified diffs Side-by-side diffs Delta from patch set Stats (+192 lines, -46 lines) Patch
M chrome/browser/android/offline_pages/offline_page_tab_helper.h View 1 2 3 4 chunks +23 lines, -1 line 0 comments Download
M chrome/browser/android/offline_pages/offline_page_tab_helper.cc View 1 2 7 chunks +77 lines, -28 lines 0 comments Download
M chrome/browser/android/offline_pages/offline_page_tab_helper_unittest.cc View 1 2 10 chunks +71 lines, -8 lines 0 comments Download
M chrome/browser/android/offline_pages/offline_page_utils.h View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/android/offline_pages/offline_page_utils.cc View 1 2 2 chunks +11 lines, -0 lines 0 comments Download
M chrome/browser/android/offline_pages/recent_tab_helper.cc View 1 2 2 chunks +2 lines, -6 lines 0 comments Download
M components/offline_pages/client_policy_controller.cc View 1 2 1 chunk +3 lines, -3 lines 0 comments Download

Messages

Total messages: 16 (5 generated)
fgorski
WDYT?
4 years, 5 months ago (2016-06-27 21:45:33 UTC) #1
dewittj
drive-by: seems like the strategy we agreed on, a few nits here and there. https://codereview.chromium.org/2100043004/diff/1/chrome/browser/android/offline_pages/offline_page_tab_helper.cc ...
4 years, 5 months ago (2016-06-27 21:52:50 UTC) #2
Dmitry Titov
https://codereview.chromium.org/2100043004/diff/1/chrome/browser/android/offline_pages/offline_page_tab_helper.cc File chrome/browser/android/offline_pages/offline_page_tab_helper.cc (right): https://codereview.chromium.org/2100043004/diff/1/chrome/browser/android/offline_pages/offline_page_tab_helper.cc#newcode226 chrome/browser/android/offline_pages/offline_page_tab_helper.cc:226: if (tab_android) How about just early return here: If ...
4 years, 5 months ago (2016-06-27 22:06:04 UTC) #3
fgorski
PTAL. Working on a test in a separate patch. https://codereview.chromium.org/2100043004/diff/1/chrome/browser/android/offline_pages/offline_page_tab_helper.cc File chrome/browser/android/offline_pages/offline_page_tab_helper.cc (right): https://codereview.chromium.org/2100043004/diff/1/chrome/browser/android/offline_pages/offline_page_tab_helper.cc#newcode169 chrome/browser/android/offline_pages/offline_page_tab_helper.cc:169: ...
4 years, 5 months ago (2016-06-27 22:40:09 UTC) #4
Dmitry Titov
lgtm
4 years, 5 months ago (2016-06-27 22:47:43 UTC) #5
fgorski
PTAL (fixed tests, added test, refactored GetTabId, fixed policy)
4 years, 5 months ago (2016-06-28 18:49:05 UTC) #7
Dmitry Titov
LGTM, with a comment nit: https://codereview.chromium.org/2100043004/diff/40001/chrome/browser/android/offline_pages/offline_page_tab_helper.h File chrome/browser/android/offline_pages/offline_page_tab_helper.h (right): https://codereview.chromium.org/2100043004/diff/40001/chrome/browser/android/offline_pages/offline_page_tab_helper.h#newcode68 chrome/browser/android/offline_pages/offline_page_tab_helper.h:68: // redirect to that ...
4 years, 5 months ago (2016-06-28 19:43:31 UTC) #8
fgorski
updated. https://codereview.chromium.org/2100043004/diff/40001/chrome/browser/android/offline_pages/offline_page_tab_helper.h File chrome/browser/android/offline_pages/offline_page_tab_helper.h (right): https://codereview.chromium.org/2100043004/diff/40001/chrome/browser/android/offline_pages/offline_page_tab_helper.h#newcode68 chrome/browser/android/offline_pages/offline_page_tab_helper.h:68: // redirect to that offline page, and caching ...
4 years, 5 months ago (2016-06-28 20:26:43 UTC) #9
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/2100043004/60001
4 years, 5 months ago (2016-06-28 20:28:54 UTC) #12
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 5 months ago (2016-06-28 22:09:47 UTC) #14
commit-bot: I haz the power
4 years, 5 months ago (2016-06-28 22:12:35 UTC) #16
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/7a82d3168ecc9779d821f17ff69e6697d38ee8da
Cr-Commit-Position: refs/heads/master@{#402563}

Powered by Google App Engine
This is Rietveld 408576698