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

Issue 2800673002: [iOS Reading List] Only allow offline URL when the offline file exists. (Closed)

Created:
3 years, 8 months ago by Olivier
Modified:
3 years, 8 months ago
CC:
chromium-reviews, ios-reviews+chrome_chromium.org, ios-reviews_chromium.org, pkl (ping after 24h if needed), noyau+watch_chromium.org, marq+watch_chromium.org, stkhapugin, sdefresne+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[iOS Reading List] Only allow offline URL when the offline file exists. If the users taps an offline url that does not match an entry, an error message should be displayed. BUG=703393 Review-Url: https://codereview.chromium.org/2800673002 Cr-Commit-Position: refs/heads/master@{#462874} Committed: https://chromium.googlesource.com/chromium/src/+/5c861c2d5bddd50d63c154c50d73ec9c3b308e33

Patch Set 1 #

Total comments: 6

Patch Set 2 : remove obsolete tests #

Patch Set 3 : feedback #

Total comments: 1

Patch Set 4 : Add comment #

Total comments: 6

Patch Set 5 : Update comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+114 lines, -50 lines) Patch
M ios/chrome/browser/reading_list/offline_url_utils.h View 1 2 3 4 2 chunks +13 lines, -4 lines 0 comments Download
M ios/chrome/browser/reading_list/offline_url_utils.cc View 1 2 3 4 5 chunks +33 lines, -13 lines 0 comments Download
M ios/chrome/browser/reading_list/offline_url_utils_unittest.cc View 4 chunks +55 lines, -14 lines 0 comments Download
M ios/chrome/browser/ui/browser_view_controller.mm View 2 chunks +8 lines, -2 lines 0 comments Download
M ios/chrome/browser/ui/reading_list/offline_page_native_content.mm View 1 chunk +5 lines, -0 lines 0 comments Download
M ios/chrome/browser/ui/reading_list/offline_page_native_content_unittest.mm View 1 1 chunk +0 lines, -17 lines 0 comments Download

Messages

Total messages: 26 (16 generated)
Olivier
3 years, 8 months ago (2017-04-05 11:26:21 UTC) #2
jif
https://codereview.chromium.org/2800673002/diff/1/ios/chrome/browser/reading_list/offline_url_utils.cc File ios/chrome/browser/reading_list/offline_url_utils.cc (right): https://codereview.chromium.org/2800673002/diff/1/ios/chrome/browser/reading_list/offline_url_utils.cc#newcode100 ios/chrome/browser/reading_list/offline_url_utils.cc:100: return url == reading_list::OfflineURLForPath(entry->DistilledPath(), when can this test be ...
3 years, 8 months ago (2017-04-05 13:19:32 UTC) #12
Olivier
Thanks PTAL https://codereview.chromium.org/2800673002/diff/1/ios/chrome/browser/reading_list/offline_url_utils.cc File ios/chrome/browser/reading_list/offline_url_utils.cc (right): https://codereview.chromium.org/2800673002/diff/1/ios/chrome/browser/reading_list/offline_url_utils.cc#newcode100 ios/chrome/browser/reading_list/offline_url_utils.cc:100: return url == reading_list::OfflineURLForPath(entry->DistilledPath(), On 2017/04/05 13:19:32, ...
3 years, 8 months ago (2017-04-05 14:30:54 UTC) #13
jif
lgtm https://codereview.chromium.org/2800673002/diff/40001/ios/chrome/browser/reading_list/offline_url_utils.cc File ios/chrome/browser/reading_list/offline_url_utils.cc (right): https://codereview.chromium.org/2800673002/diff/40001/ios/chrome/browser/reading_list/offline_url_utils.cc#newcode100 ios/chrome/browser/reading_list/offline_url_utils.cc:100: return url == reading_list::OfflineURLForPath(entry->DistilledPath(), Add a comment that ...
3 years, 8 months ago (2017-04-05 14:37:04 UTC) #14
Olivier
Hi Eugene, marq, can you take a look?
3 years, 8 months ago (2017-04-07 08:19:23 UTC) #17
marq (ping after 24h)
lgtm
3 years, 8 months ago (2017-04-07 09:50:37 UTC) #18
Eugene But (OOO till 7-30)
lgtm https://codereview.chromium.org/2800673002/diff/60001/ios/chrome/browser/reading_list/offline_url_utils.cc File ios/chrome/browser/reading_list/offline_url_utils.cc (right): https://codereview.chromium.org/2800673002/diff/60001/ios/chrome/browser/reading_list/offline_url_utils.cc#newcode93 ios/chrome/browser/reading_list/offline_url_utils.cc:93: if (!entry_url.is_valid() || !model || !model->loaded()) { Is ...
3 years, 8 months ago (2017-04-07 15:17:52 UTC) #19
Olivier
Thanks https://codereview.chromium.org/2800673002/diff/60001/ios/chrome/browser/reading_list/offline_url_utils.cc File ios/chrome/browser/reading_list/offline_url_utils.cc (right): https://codereview.chromium.org/2800673002/diff/60001/ios/chrome/browser/reading_list/offline_url_utils.cc#newcode93 ios/chrome/browser/reading_list/offline_url_utils.cc:93: if (!entry_url.is_valid() || !model || !model->loaded()) { On ...
3 years, 8 months ago (2017-04-07 15:44:27 UTC) #20
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/2800673002/80001
3 years, 8 months ago (2017-04-07 15:44:56 UTC) #23
commit-bot: I haz the power
3 years, 8 months ago (2017-04-07 15:57:35 UTC) #26
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/5c861c2d5bddd50d63c154c50d73...

Powered by Google App Engine
This is Rietveld 408576698