[ios] Unify EvaluateJavaScriptAsString and RunJavaScript.
RunJavaScript wrapped the original script in try-catch blocks to handle
JS exceptions for UIWebView. This is unnecessary anymore with WKWebView
(which supports JS exceptions) so RunJavaScript was changed to have the
same implementation as EvaluateJavaScriptAsString.
All EvaluateJavaScriptAsString calls will be replaced with RunJavaScript
because latter is shorter and we need only one JS evaluation API.
BUG=579697
Review URL: https://codereview.chromium.org/1883573002
Cr-Commit-Position: refs/heads/master@{#386688}
2 files changed