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

Unified Diff: chrome/browser/ui/webui/options/startup_pages_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/startup_pages_handler.cc
diff --git a/chrome/browser/ui/webui/options/startup_pages_handler.cc b/chrome/browser/ui/webui/options/startup_pages_handler.cc
index 6a8e61b5ab61097a1c17cf316940f7978ade76c6..a06fa42f1eecee4e24fcf469935f6a30cb9b6bc5 100644
--- a/chrome/browser/ui/webui/options/startup_pages_handler.cc
+++ b/chrome/browser/ui/webui/options/startup_pages_handler.cc
@@ -130,8 +130,8 @@ void StartupPagesHandler::OnModelChanged() {
startup_pages.Append(entry);
}
- web_ui()->CallJavascriptFunction("StartupOverlay.updateStartupPages",
- startup_pages);
+ web_ui()->CallJavascriptFunctionUnsafe("StartupOverlay.updateStartupPages",
+ startup_pages);
}
void StartupPagesHandler::OnItemsChanged(int start, int length) {
@@ -262,7 +262,7 @@ void StartupPagesHandler::OnResultChanged(bool default_match_changed) {
const AutocompleteResult& result = autocomplete_controller_->result();
base::ListValue suggestions;
OptionsUI::ProcessAutocompleteSuggestions(result, &suggestions);
- web_ui()->CallJavascriptFunction(
+ web_ui()->CallJavascriptFunctionUnsafe(
"StartupOverlay.updateAutocompleteSuggestions", suggestions);
}

Powered by Google App Engine
This is Rietveld 408576698