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

Unified Diff: chrome/browser/ui/webui/theme_handler.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/theme_handler.cc
diff --git a/chrome/browser/ui/webui/theme_handler.cc b/chrome/browser/ui/webui/theme_handler.cc
index 585d662a54758df1f051e4ff3ed4e71eb7e205d3..7d44212bceecfb273a50a9050699e428da19e780 100644
--- a/chrome/browser/ui/webui/theme_handler.cc
+++ b/chrome/browser/ui/webui/theme_handler.cc
@@ -43,7 +43,7 @@ void ThemeHandler::Observe(int type,
.HasCustomImage(IDR_THEME_NTP_BACKGROUND);
base::DictionaryValue dictionary;
dictionary.SetBoolean("hasCustomBackground", has_custom_bg);
- web_ui()->CallJavascriptFunction("ntp.themeChanged", dictionary);
+ web_ui()->CallJavascriptFunctionUnsafe("ntp.themeChanged", dictionary);
}
void ThemeHandler::InitializeCSSCaches() {

Powered by Google App Engine
This is Rietveld 408576698