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

Issue 1959393002: Choose the best offline page when given an online URL. (Closed)

Created:
4 years, 7 months ago by dewittj
Modified:
4 years, 7 months ago
Reviewers:
fgorski
CC:
chromium-reviews, fgorski+watch_chromium.org, romax+watch_chromium.org, dewittj+watch_chromium.org, petewil+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

Choose the best offline page when given an online URL. Current strategy is to pick the most recent page that matches the URL. BUG=610534 Committed: https://crrev.com/7e23e9807b3e086641c417c1325843238054ba94 Cr-Commit-Position: refs/heads/master@{#392748}

Patch Set 1 : #

Patch Set 2 : Rebase. #

Patch Set 3 : Add a sleep to make ios_simulator happy. #

Patch Set 4 : Initialize pointer. #

Patch Set 5 : Remove sleep after all. #

Total comments: 4

Patch Set 6 : Address nits. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+79 lines, -17 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/offlinepages/OfflinePageBridge.java View 1 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/android/offline_pages/offline_page_bridge.h View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/android/offline_pages/offline_page_bridge.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/android/offline_pages/offline_page_utils.cc View 1 4 chunks +4 lines, -4 lines 0 comments Download
M components/offline_pages/offline_page_model.h View 1 2 3 4 5 2 chunks +15 lines, -2 lines 0 comments Download
M components/offline_pages/offline_page_model.cc View 1 2 3 2 chunks +27 lines, -4 lines 0 comments Download
M components/offline_pages/offline_page_model_unittest.cc View 1 3 4 3 chunks +28 lines, -2 lines 0 comments Download

Messages

Total messages: 13 (7 generated)
dewittj
ptal
4 years, 7 months ago (2016-05-10 17:17:17 UTC) #4
fgorski
lgtm with nits. https://codereview.chromium.org/1959393002/diff/100001/components/offline_pages/offline_page_model.h File components/offline_pages/offline_page_model.h (right): https://codereview.chromium.org/1959393002/diff/100001/components/offline_pages/offline_page_model.h#newcode247 components/offline_pages/offline_page_model.h:247: // page will be preferred over ...
4 years, 7 months ago (2016-05-10 20:52:54 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1959393002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1959393002/120001
4 years, 7 months ago (2016-05-10 21:10:26 UTC) #8
commit-bot: I haz the power
Committed patchset #6 (id:120001)
4 years, 7 months ago (2016-05-10 22:29:07 UTC) #10
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/7e23e9807b3e086641c417c1325843238054ba94 Cr-Commit-Position: refs/heads/master@{#392748}
4 years, 7 months ago (2016-05-10 22:31:17 UTC) #12
dewittj
4 years, 7 months ago (2016-05-11 15:57:25 UTC) #13
Message was sent while issue was closed.
https://codereview.chromium.org/1959393002/diff/100001/components/offline_pag...
File components/offline_pages/offline_page_model.h (right):

https://codereview.chromium.org/1959393002/diff/100001/components/offline_pag...
components/offline_pages/offline_page_model.h:247: // page will be preferred
over an older one.  This API function does not
On 2016/05/10 20:52:53, fgorski wrote:
> nit: Be consistent with usage of double space after period. See above after
> "any."

Done.

https://codereview.chromium.org/1959393002/diff/100001/components/offline_pag...
components/offline_pages/offline_page_model.h:255: // not found.  The best page
is chosen based on creation date; a more recently
On 2016/05/10 20:52:53, fgorski wrote:
> Simply:
> See |GetBestPAge..| for selection of best page.

Done.

Powered by Google App Engine
This is Rietveld 408576698