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

Unified Diff: ios/web/interstitials/web_interstitial_impl.mm

Issue 2687343003: Fixed navigation for displayed SSL interstitials. (Closed)
Patch Set: Preserve old behavior of pending navigation index is disabled. Created 3 years, 10 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
« no previous file with comments | « ios/chrome/browser/tabs/tab.mm ('k') | ios/web/web_state/ui/crw_web_controller.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 2e83b766c7ce18ac0eeec6e92a8d1c80b244ef39..4187248f05abc395d9c488a8ba14d1e31b82d500 100644
--- a/ios/web/interstitials/web_interstitial_impl.mm
+++ b/ios/web/interstitials/web_interstitial_impl.mm
@@ -90,8 +90,11 @@ void WebInterstitialImpl::DontProceed() {
GetDelegate()->OnDontProceed();
- // Reload last committed entry.
- nav_manager->Reload(true /* check_for_repost */);
+ NSUserDefaults* user_defaults = [NSUserDefaults standardUserDefaults];
+ if (![user_defaults boolForKey:@"PendingIndexNavigationDisabled"]) {
+ // Reload last committed entry.
+ nav_manager->Reload(true /* check_for_repost */);
+ }
delete this;
}
« no previous file with comments | « ios/chrome/browser/tabs/tab.mm ('k') | ios/web/web_state/ui/crw_web_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698