| Index: ios/web/interstitials/web_interstitial_impl.mm
|
| diff --git a/ios/web/interstitials/web_interstitial_impl.mm b/ios/web/interstitials/web_interstitial_impl.mm
|
| index 1a9febb41a5510d446a02e7e28c507fae7d87804..30698e685af337157ee9d24329ae96206422b708 100644
|
| --- a/ios/web/interstitials/web_interstitial_impl.mm
|
| +++ b/ios/web/interstitials/web_interstitial_impl.mm
|
| @@ -84,11 +84,18 @@
|
|
|
| // Clear the pending entry, since that's the page that's not being
|
| // proceeded to.
|
| - GetWebStateImpl()->GetNavigationManager()->DiscardNonCommittedItems();
|
| + NavigationManager* nav_manager = GetWebStateImpl()->GetNavigationManager();
|
| + nav_manager->DiscardNonCommittedItems();
|
|
|
| Hide();
|
|
|
| GetDelegate()->OnDontProceed();
|
| +
|
| + NSUserDefaults* user_defaults = [NSUserDefaults standardUserDefaults];
|
| + if (![user_defaults boolForKey:@"PendingIndexNavigationDisabled"]) {
|
| + // Reload last committed entry.
|
| + nav_manager->Reload(ReloadType::NORMAL, true /* check_for_repost */);
|
| + }
|
|
|
| delete this;
|
| }
|
|
|