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

Unified Diff: ios/chrome/browser/tabs/tab.mm

Issue 2646003002: [ios] Remove the openJavascript method from Tab. (Closed)
Patch Set: Created 3 years, 11 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
Index: ios/chrome/browser/tabs/tab.mm
diff --git a/ios/chrome/browser/tabs/tab.mm b/ios/chrome/browser/tabs/tab.mm
index b3c9ce80e27bd0fc338ef2f9b06ac64aadbe1c42..3fc16f69aba18296fabf2983aceae3e91543b566 100644
--- a/ios/chrome/browser/tabs/tab.mm
+++ b/ios/chrome/browser/tabs/tab.mm
@@ -1172,13 +1172,6 @@ void TabInfoBarObserver::OnInfoBarReplaced(infobars::InfoBar* old_infobar,
currentIndex:sessionTab->current_navigation_index];
}
-- (void)openJavascript:(NSString*)javaScript {
- DCHECK(javaScript);
- javaScript = [javaScript stringByRemovingPercentEncoding];
- if (webStateImpl_)
- webStateImpl_->ExecuteJavaScript(base::SysNSStringToUTF16(javaScript));
-}
-
- (void)reload {
// TODO(crbug.com/661671): Convert callers to go through CRWWebController
// directly and remove this passthrough method.

Powered by Google App Engine
This is Rietveld 408576698