Chromium Code Reviews| Index: ios/web/navigation/navigation_manager_impl.mm |
| diff --git a/ios/web/navigation/navigation_manager_impl.mm b/ios/web/navigation/navigation_manager_impl.mm |
| index 9acc14128e0cf1c54c5558b26371a22b9fae8f39..56ff351911d84128a929b9c05c3637189421c607 100644 |
| --- a/ios/web/navigation/navigation_manager_impl.mm |
| +++ b/ios/web/navigation/navigation_manager_impl.mm |
| @@ -348,16 +348,7 @@ bool AreURLsInPageNavigation(const GURL& existing_url, const GURL& new_url) { |
| void NavigationManagerImpl::Reload(ReloadType reload_type, |
| bool check_for_reposts) { |
| - // Navigation manager may be empty if the only pending item failed to load |
| - // with SSL error and the user has decided not to proceed. |
| - NavigationItem* item = GetVisibleItem(); |
| - GURL url = item ? item->GetURL() : GURL(url::kAboutBlankURL); |
| - web::Referrer referrer = item ? item->GetReferrer() : web::Referrer(); |
| - |
| - WebState::OpenURLParams params(url, referrer, |
| - WindowOpenDisposition::CURRENT_TAB, |
| - ui::PAGE_TRANSITION_RELOAD, NO); |
| - delegate_->GetWebState()->OpenURL(params); |
| + delegate_->Reload(); |
|
kkhorimoto
2017/03/16 18:13:04
We can handle |reload_type| here by updating the v
liaoyuke
2017/03/17 17:59:21
Since it's still unclear where we want to handle |
|
| } |
| std::unique_ptr<std::vector<BrowserURLRewriter::URLRewriter>> |