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

Unified Diff: chrome/browser/ui/webui/options/automatic_settings_reset_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/options/automatic_settings_reset_handler.cc
diff --git a/chrome/browser/ui/webui/options/automatic_settings_reset_handler.cc b/chrome/browser/ui/webui/options/automatic_settings_reset_handler.cc
index 14d67bde3a7453322096ac0cff1860261459cc21..1ab33c2fa85543f05f1ef357d1406c7f3163f799 100644
--- a/chrome/browser/ui/webui/options/automatic_settings_reset_handler.cc
+++ b/chrome/browser/ui/webui/options/automatic_settings_reset_handler.cc
@@ -37,7 +37,8 @@ void AutomaticSettingsResetHandler::InitializePage() {
if (!then.is_null()) {
const base::Time now = base::Time::Now();
if ((now - then).InDays() < kBannerShowTimeInDays)
- web_ui()->CallJavascriptFunction("AutomaticSettingsResetBanner.show");
+ web_ui()->CallJavascriptFunctionUnsafe(
+ "AutomaticSettingsResetBanner.show");
}
}

Powered by Google App Engine
This is Rietveld 408576698