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

Issue 2762113002: Reading List iOS: Adapt loading offline for new reload process (Closed)

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

Description

Reading List iOS: Adapt loading offline for new reload process Loading offline pages relies on being able to reload page after changing the URL. Adapt to the new reload process which does not allow that. Also add EG tests for catching future problem. BUG=703393, 703206 Review-Url: https://codereview.chromium.org/2762113002 Cr-Commit-Position: refs/heads/master@{#460354} Committed: https://chromium.googlesource.com/chromium/src/+/f266b4e8d109a11ac0e3fae0b4c8500281e7c457

Patch Set 1 #

Patch Set 2 : clean #

Patch Set 3 : fix DCHECK #

Total comments: 1

Patch Set 4 : factor code #

Total comments: 5

Patch Set 5 : update comment #

Total comments: 12

Patch Set 6 : feedback #

Total comments: 7

Patch Set 7 : feedback #

Patch Set 8 : fix tests #

Patch Set 9 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+268 lines, -76 lines) Patch
M ios/chrome/browser/reading_list/reading_list_web_state_observer.mm View 1 2 3 4 5 6 7 8 1 chunk +8 lines, -2 lines 0 comments Download
M ios/chrome/browser/reading_list/reading_list_web_state_observer_unittest.mm View 1 2 3 4 5 6 7 8 5 chunks +16 lines, -2 lines 0 comments Download
M ios/chrome/browser/ui/reading_list/BUILD.gn View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -0 lines 0 comments Download
M ios/chrome/browser/ui/reading_list/offline_page_native_content.mm View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M ios/chrome/browser/ui/reading_list/reading_list_egtest.mm View 1 2 3 4 5 6 7 8 9 chunks +240 lines, -71 lines 0 comments Download

Messages

Total messages: 57 (27 generated)
Olivier
PTAL
3 years, 9 months ago (2017-03-21 12:53:29 UTC) #3
jif
https://codereview.chromium.org/2762113002/diff/40001/ios/chrome/browser/ui/reading_list/reading_list_egtest.mm File ios/chrome/browser/ui/reading_list/reading_list_egtest.mm (right): https://codereview.chromium.org/2762113002/diff/40001/ios/chrome/browser/ui/reading_list/reading_list_egtest.mm#newcode366 ios/chrome/browser/ui/reading_list/reading_list_egtest.mm:366: // Setup a server serving a distillable page at ...
3 years, 9 months ago (2017-03-21 13:11:02 UTC) #4
Olivier
Thanks PTAL
3 years, 9 months ago (2017-03-21 14:51:13 UTC) #5
Eugene But (OOO till 7-30)
https://codereview.chromium.org/2762113002/diff/60001/ios/chrome/browser/reading_list/reading_list_web_state_observer.mm File ios/chrome/browser/reading_list/reading_list_web_state_observer.mm (left): https://codereview.chromium.org/2762113002/diff/60001/ios/chrome/browser/reading_list/reading_list_web_state_observer.mm#oldcode298 ios/chrome/browser/reading_list/reading_list_web_state_observer.mm:298: navigationManager->Reload(web::ReloadType::NORMAL, The fact that Reload does not work anymore ...
3 years, 9 months ago (2017-03-21 15:48:20 UTC) #7
Olivier
Thanks https://codereview.chromium.org/2762113002/diff/60001/ios/chrome/browser/reading_list/reading_list_web_state_observer.mm File ios/chrome/browser/reading_list/reading_list_web_state_observer.mm (left): https://codereview.chromium.org/2762113002/diff/60001/ios/chrome/browser/reading_list/reading_list_web_state_observer.mm#oldcode298 ios/chrome/browser/reading_list/reading_list_web_state_observer.mm:298: navigationManager->Reload(web::ReloadType::NORMAL, On 2017/03/21 15:48:19, Eugene But wrote: > ...
3 years, 9 months ago (2017-03-21 16:41:31 UTC) #9
jif
lgtm https://codereview.chromium.org/2762113002/diff/80001/ios/chrome/browser/ui/reading_list/reading_list_egtest.mm File ios/chrome/browser/ui/reading_list/reading_list_egtest.mm (right): https://codereview.chromium.org/2762113002/diff/80001/ios/chrome/browser/ui/reading_list/reading_list_egtest.mm#newcode219 ios/chrome/browser/ui/reading_list/reading_list_egtest.mm:219: // Adds an the current page to the ...
3 years, 9 months ago (2017-03-21 17:09:51 UTC) #10
Eugene But (OOO till 7-30)
Let's see if Yuke can make a fix in web layer. If they decide that ...
3 years, 9 months ago (2017-03-21 17:10:24 UTC) #11
Olivier
Thanks. I will wait until tomorrow to see if there is a web/ fix. Even ...
3 years, 9 months ago (2017-03-21 17:44:24 UTC) #12
kkhorimoto
not lgtm https://codereview.chromium.org/2762113002/diff/100001/ios/chrome/browser/ui/reading_list/offline_page_native_content.mm File ios/chrome/browser/ui/reading_list/offline_page_native_content.mm (right): https://codereview.chromium.org/2762113002/diff/100001/ios/chrome/browser/ui/reading_list/offline_page_native_content.mm#newcode96 ios/chrome/browser/ui/reading_list/offline_page_native_content.mm:96: _webState->GetNavigationManager()->LoadURLWithParams(reloadParams); This is not correct. Using LoadURLWithParams() ...
3 years, 9 months ago (2017-03-21 20:52:39 UTC) #14
liaoyuke
https://codereview.chromium.org/2762113002/diff/100001/ios/chrome/browser/ui/reading_list/offline_page_native_content.mm File ios/chrome/browser/ui/reading_list/offline_page_native_content.mm (right): https://codereview.chromium.org/2762113002/diff/100001/ios/chrome/browser/ui/reading_list/offline_page_native_content.mm#newcode96 ios/chrome/browser/ui/reading_list/offline_page_native_content.mm:96: _webState->GetNavigationManager()->LoadURLWithParams(reloadParams); On 2017/03/21 20:52:39, kkhorimoto_ wrote: > This is ...
3 years, 9 months ago (2017-03-21 22:49:09 UTC) #15
kkhorimoto
https://codereview.chromium.org/2762113002/diff/100001/ios/chrome/browser/ui/reading_list/offline_page_native_content.mm File ios/chrome/browser/ui/reading_list/offline_page_native_content.mm (right): https://codereview.chromium.org/2762113002/diff/100001/ios/chrome/browser/ui/reading_list/offline_page_native_content.mm#newcode96 ios/chrome/browser/ui/reading_list/offline_page_native_content.mm:96: _webState->GetNavigationManager()->LoadURLWithParams(reloadParams); On 2017/03/21 22:49:09, liaoyuke wrote: > On 2017/03/21 ...
3 years, 9 months ago (2017-03-21 22:56:29 UTC) #16
kkhorimoto
https://codereview.chromium.org/2762113002/diff/100001/ios/chrome/browser/ui/reading_list/offline_page_native_content.mm File ios/chrome/browser/ui/reading_list/offline_page_native_content.mm (right): https://codereview.chromium.org/2762113002/diff/100001/ios/chrome/browser/ui/reading_list/offline_page_native_content.mm#newcode96 ios/chrome/browser/ui/reading_list/offline_page_native_content.mm:96: _webState->GetNavigationManager()->LoadURLWithParams(reloadParams); On 2017/03/21 22:56:29, kkhorimoto_ wrote: > On 2017/03/21 ...
3 years, 9 months ago (2017-03-21 23:02:16 UTC) #17
Olivier
https://codereview.chromium.org/2762113002/diff/100001/ios/chrome/browser/ui/reading_list/offline_page_native_content.mm File ios/chrome/browser/ui/reading_list/offline_page_native_content.mm (right): https://codereview.chromium.org/2762113002/diff/100001/ios/chrome/browser/ui/reading_list/offline_page_native_content.mm#newcode96 ios/chrome/browser/ui/reading_list/offline_page_native_content.mm:96: _webState->GetNavigationManager()->LoadURLWithParams(reloadParams); On 2017/03/21 23:02:16, kkhorimoto_ wrote: > On 2017/03/21 ...
3 years, 9 months ago (2017-03-22 13:33:36 UTC) #24
liaoyuke
btw, could you please format the description of the CL so that it meets the ...
3 years, 9 months ago (2017-03-22 16:16:33 UTC) #27
Olivier
On 2017/03/22 16:16:33, liaoyuke wrote: > btw, could you please format the description of the ...
3 years, 9 months ago (2017-03-22 16:59:43 UTC) #29
Eugene But (OOO till 7-30)
On 2017/03/22 16:59:43, Olivier Robin wrote: > On 2017/03/22 16:16:33, liaoyuke wrote: > > btw, ...
3 years, 9 months ago (2017-03-22 17:35:18 UTC) #30
Olivier
On 2017/03/22 17:35:18, Eugene But wrote: > On 2017/03/22 16:59:43, Olivier Robin wrote: > > ...
3 years, 9 months ago (2017-03-22 17:36:15 UTC) #31
liaoyuke
On 2017/03/22 17:36:15, Olivier Robin wrote: > On 2017/03/22 17:35:18, Eugene But wrote: > > ...
3 years, 9 months ago (2017-03-22 20:08:05 UTC) #32
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/2762113002/140001
3 years, 9 months ago (2017-03-23 09:09:56 UTC) #35
commit-bot: I haz the power
A disapproval has been posted by following reviewers: kkhorimoto@chromium.org. Please make sure to get positive ...
3 years, 9 months ago (2017-03-23 09:09:59 UTC) #37
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/2762113002/140001
3 years, 9 months ago (2017-03-23 09:11:49 UTC) #40
commit-bot: I haz the power
A disapproval has been posted by following reviewers: kkhorimoto@chromium.org. Please make sure to get positive ...
3 years, 9 months ago (2017-03-23 09:11:52 UTC) #42
Olivier
On 2017/03/22 20:08:05, liaoyuke wrote: > On 2017/03/22 17:36:15, Olivier Robin wrote: > > On ...
3 years, 9 months ago (2017-03-23 09:13:11 UTC) #44
sdefresne
On 2017/03/23 09:13:11, Olivier Robin wrote: > On 2017/03/22 20:08:05, liaoyuke wrote: > > On ...
3 years, 9 months ago (2017-03-23 14:48:59 UTC) #45
kkhorimoto
lgtm! sorry, I was OOO for most of last week
3 years, 8 months ago (2017-03-28 19:16:14 UTC) #46
kkhorimoto
lgtm! sorry, I was OOO for most of last week
3 years, 8 months ago (2017-03-28 19:16:20 UTC) #47
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/2762113002/140001
3 years, 8 months ago (2017-03-29 07:40:48 UTC) #49
commit-bot: I haz the power
Try jobs failed on following builders: ios-simulator-xcode-clang on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator-xcode-clang/builds/68639)
3 years, 8 months ago (2017-03-29 07:43:11 UTC) #51
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/2762113002/160001
3 years, 8 months ago (2017-03-29 09:40:15 UTC) #54
commit-bot: I haz the power
3 years, 8 months ago (2017-03-29 11:42:10 UTC) #57
Message was sent while issue was closed.
Committed patchset #9 (id:160001) as
https://chromium.googlesource.com/chromium/src/+/f266b4e8d109a11ac0e3fae0b4c8...

Powered by Google App Engine
This is Rietveld 408576698