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

Unified Diff: ios/chrome/browser/ui/reading_list/offline_page_native_content.mm

Issue 2762113002: Reading List iOS: Adapt loading offline for new reload process (Closed)
Patch Set: factor code Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ios/chrome/browser/ui/reading_list/offline_page_native_content.mm
diff --git a/ios/chrome/browser/ui/reading_list/offline_page_native_content.mm b/ios/chrome/browser/ui/reading_list/offline_page_native_content.mm
index 0b37551df0f63a092a2dad474e2c2501c3ef57ff..b148f6290ea84789717b7462b16d5ec1bc1cde8b 100644
--- a/ios/chrome/browser/ui/reading_list/offline_page_native_content.mm
+++ b/ios/chrome/browser/ui/reading_list/offline_page_native_content.mm
@@ -89,8 +89,11 @@
- (void)reload {
[self restoreOnlineURL];
- _webState->GetNavigationManager()->Reload(web::ReloadType::NORMAL,
- false /*check_for_repost*/);
+ web::NavigationManager::WebLoadParams reloadParams(_virtualURL);
+ reloadParams.transition_type = ui::PAGE_TRANSITION_RELOAD;
+ reloadParams.referrer =
+ _webState->GetNavigationManager()->GetLastCommittedItem()->GetReferrer();
+ _webState->GetNavigationManager()->LoadURLWithParams(reloadParams);
}
- (void)restoreOnlineURL {

Powered by Google App Engine
This is Rietveld 408576698