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

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

Issue 2281803002: [ios] Removed deprecated JS execution API. (Closed)
Patch Set: Merged with master Created 4 years, 4 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/web/web_state/ui/crw_web_controller.h ('k') | ios/web/web_state/ui/web_view_js_utils.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 b00480f8839552a20b2481b17fdedcf05b3c70c7..e709907b5ff73f27ff6a07359e05ed4da1a042b1 100644
--- a/ios/web/web_state/ui/crw_web_controller.mm
+++ b/ios/web/web_state/ui/crw_web_controller.mm
@@ -2485,12 +2485,6 @@ const NSTimeInterval kSnapshotOverlayTransition = 0.5;
#pragma mark -
#pragma mark CRWJSInjectionEvaluator Methods
-- (void)evaluateJavaScript:(NSString*)script
- stringResultHandler:(web::JavaScriptCompletion)handler {
- NSString* safeScript = [self scriptByAddingWindowIDCheckForScript:script];
- web::EvaluateJavaScript(_webView, safeScript, handler);
-}
-
- (void)executeJavaScript:(NSString*)script
completionHandler:(web::JavaScriptResultBlock)completionHandler {
NSString* safeScript = [self scriptByAddingWindowIDCheckForScript:script];
@@ -2520,11 +2514,6 @@ const NSTimeInterval kSnapshotOverlayTransition = 0.5;
[self executeJavaScript:script completionHandler:completion];
}
-// DEPRECATED. TODO(crbug.com/595761): Remove this API.
-- (void)evaluateUserJavaScript:(NSString*)script {
- [self executeUserJavaScript:script completionHandler:nil];
-}
-
- (BOOL)respondToMessage:(base::DictionaryValue*)message
userIsInteracting:(BOOL)userIsInteracting
originURL:(const GURL&)originURL {
« no previous file with comments | « ios/web/web_state/ui/crw_web_controller.h ('k') | ios/web/web_state/ui/web_view_js_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698