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

Unified Diff: chrome/browser/ui/webui/uber/uber_ui.cc

Issue 1995113002: Rename WebUI::CallJavascriptFunction to WebUI::CallJavascriptFunctionUnsafe (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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: chrome/browser/ui/webui/uber/uber_ui.cc
diff --git a/chrome/browser/ui/webui/uber/uber_ui.cc b/chrome/browser/ui/webui/uber/uber_ui.cc
index ea1a5bfe9a9edeab99e41183be86b65702f4dc80..5745b916bcc6eb9f83c6844fd64a9d28706d4b1e 100644
--- a/chrome/browser/ui/webui/uber/uber_ui.cc
+++ b/chrome/browser/ui/webui/uber/uber_ui.cc
@@ -127,7 +127,7 @@ void UpdateHistoryNavigation(content::WebUI* web_ui) {
bool overrides_history =
HasExtensionType(web_ui->GetWebContents()->GetBrowserContext(),
chrome::kChromeUIHistoryHost);
- web_ui->CallJavascriptFunction(
+ web_ui->CallJavascriptFunctionUnsafe(
"uber_frame.setNavigationOverride",
base::StringValue(chrome::kChromeUIHistoryHost),
base::StringValue(overrides_history ? "yes" : "no"));

Powered by Google App Engine
This is Rietveld 408576698