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

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, 6 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 35d8eb005e5cf0feec805fdb5a2e893d3e3555a6..8cc49e5fa4adf9aa50091ec53db665d6f5fdd43a 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