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

Unified Diff: ios/web/web_state/ui/crw_web_controller.mm

Issue 1504493002: Added |-cancelJavaScriptDialogsForWebController:| to UI delegate. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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/web/web_state/ui/crw_web_controller.mm
diff --git a/ios/web/web_state/ui/crw_web_controller.mm b/ios/web/web_state/ui/crw_web_controller.mm
index 43b1f97c2e818635ea150411989d4e579d704fcc..10a06247846f012b4eb8f263c0cb44cf6fee1f21 100644
--- a/ios/web/web_state/ui/crw_web_controller.mm
+++ b/ios/web/web_state/ui/crw_web_controller.mm
@@ -691,6 +691,12 @@ const NSTimeInterval kSnapshotOverlayTransition = 0.5;
if (!self.webView)
return;
+ if ([self.UIDelegate
+ respondsToSelector:@selector(
+ cancelJavaScriptDialogsForWebController:)]) {
Eugene But (OOO till 7-30) 2015/12/04 23:24:11 Factoring SEL to a separate local variable can mak
kkhorimoto 2015/12/10 01:27:32 Done.
+ [self.UIDelegate cancelJavaScriptDialogsForWebController:self];
+ }
+
if (allowCache)
_expectedReconstructionURL = [self currentNavigationURL];
else

Powered by Google App Engine
This is Rietveld 408576698