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

Issue 2503853004: Support getting offline pages also by original URL (Closed)

Created:
4 years, 1 month ago by jianli
Modified:
4 years, 1 month ago
Reviewers:
fgorski
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

Support getting offline pages also by original URL BUG=618716 Committed: https://crrev.com/610b1fdb73c904e2629f8730b55909c06fd85cf7 Cr-Commit-Position: refs/heads/master@{#433013}

Patch Set 1 #

Patch Set 2 : Update tests #

Patch Set 3 : Rebase #

Total comments: 12

Patch Set 4 : Address feedback #

Patch Set 5 : Exact match original url #

Total comments: 2

Patch Set 6 : Make NTP redirect work per comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+213 lines, -82 lines) Patch
M chrome/browser/android/offline_pages/offline_page_bridge.cc View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/android/offline_pages/offline_page_request_job.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/android/offline_pages/offline_page_request_job.cc View 1 2 3 12 chunks +58 lines, -18 lines 0 comments Download
M chrome/browser/android/offline_pages/offline_page_tab_helper.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/android/offline_pages/offline_page_tab_helper.cc View 1 2 3 1 chunk +4 lines, -3 lines 0 comments Download
M chrome/browser/android/offline_pages/offline_page_utils.h View 1 2 3 2 chunks +5 lines, -3 lines 0 comments Download
M chrome/browser/android/offline_pages/offline_page_utils.cc View 1 2 3 4 3 chunks +39 lines, -18 lines 0 comments Download
M components/offline_pages/offline_page_metadata_store_impl_unittest.cc View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M components/offline_pages/offline_page_model.h View 1 2 3 2 chunks +14 lines, -3 lines 0 comments Download
M components/offline_pages/offline_page_model_impl.h View 1 2 3 2 chunks +6 lines, -4 lines 0 comments Download
M components/offline_pages/offline_page_model_impl.cc View 1 2 3 4 2 chunks +22 lines, -14 lines 0 comments Download
M components/offline_pages/offline_page_model_impl_unittest.cc View 1 2 3 4 3 chunks +53 lines, -13 lines 0 comments Download
M components/offline_pages/stub_offline_page_model.h View 1 2 3 1 chunk +3 lines, -2 lines 0 comments Download
M components/offline_pages/stub_offline_page_model.cc View 1 2 3 1 chunk +3 lines, -2 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 30 (19 generated)
jianli
4 years, 1 month ago (2016-11-16 02:20:35 UTC) #4
fgorski
mostly looks good. I'd go for an enum. It'll be cleaner. https://codereview.chromium.org/2503853004/diff/60001/chrome/browser/android/offline_pages/offline_page_request_job.cc File chrome/browser/android/offline_pages/offline_page_request_job.cc (right): ...
4 years, 1 month ago (2016-11-16 23:43:46 UTC) #10
jianli
https://codereview.chromium.org/2503853004/diff/60001/chrome/browser/android/offline_pages/offline_page_request_job.cc File chrome/browser/android/offline_pages/offline_page_request_job.cc (right): https://codereview.chromium.org/2503853004/diff/60001/chrome/browser/android/offline_pages/offline_page_request_job.cc#newcode595 chrome/browser/android/offline_pages/offline_page_request_job.cc:595: // TODO(jianli): kicks off the redirect. For now, use ...
4 years, 1 month ago (2016-11-17 01:12:15 UTC) #12
jianli
I realized that it would be safer if we would only allow exact match against ...
4 years, 1 month ago (2016-11-17 01:48:57 UTC) #14
fgorski
lgtm
4 years, 1 month ago (2016-11-17 17:23:53 UTC) #20
vitaliii
On 2016/11/17 17:23:53, fgorski wrote: > lgtm Could someone elaborate on why you've choose matching ...
4 years, 1 month ago (2016-11-17 17:29:15 UTC) #21
vitaliii
https://codereview.chromium.org/2503853004/diff/100001/chrome/browser/android/offline_pages/offline_page_bridge.cc File chrome/browser/android/offline_pages/offline_page_bridge.cc (right): https://codereview.chromium.org/2503853004/diff/100001/chrome/browser/android/offline_pages/offline_page_bridge.cc#newcode414 chrome/browser/android/offline_pages/offline_page_bridge.cc:414: OfflinePageModel::URLSearchMode::SEARCH_BY_FINAL_URL_ONLY, If you replace this with SEARCH_BY_ALL_URLS, then our ...
4 years, 1 month ago (2016-11-17 18:41:11 UTC) #22
jianli
https://codereview.chromium.org/2503853004/diff/100001/chrome/browser/android/offline_pages/offline_page_bridge.cc File chrome/browser/android/offline_pages/offline_page_bridge.cc (right): https://codereview.chromium.org/2503853004/diff/100001/chrome/browser/android/offline_pages/offline_page_bridge.cc#newcode414 chrome/browser/android/offline_pages/offline_page_bridge.cc:414: OfflinePageModel::URLSearchMode::SEARCH_BY_FINAL_URL_ONLY, On 2016/11/17 18:41:11, vitaliii wrote: > If you ...
4 years, 1 month ago (2016-11-17 20:59:26 UTC) #23
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/2503853004/120001
4 years, 1 month ago (2016-11-17 21:03:16 UTC) #26
commit-bot: I haz the power
Committed patchset #6 (id:120001)
4 years, 1 month ago (2016-11-17 23:18:21 UTC) #28
commit-bot: I haz the power
4 years, 1 month ago (2016-11-17 23:21:49 UTC) #30
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/610b1fdb73c904e2629f8730b55909c06fd85cf7
Cr-Commit-Position: refs/heads/master@{#433013}

Powered by Google App Engine
This is Rietveld 408576698