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

Unified Diff: chrome/browser/ui/webui/copresence_ui_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
« no previous file with comments | « chrome/browser/ui/webui/conflicts_ui.cc ('k') | chrome/browser/ui/webui/crashes_ui.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/copresence_ui_handler.cc
diff --git a/chrome/browser/ui/webui/copresence_ui_handler.cc b/chrome/browser/ui/webui/copresence_ui_handler.cc
index 3fc03abf69b3d2851d5b38cb488f8fd976763841..9373064a5e3cbe425e484f3419c908d5774cd954 100644
--- a/chrome/browser/ui/webui/copresence_ui_handler.cc
+++ b/chrome/browser/ui/webui/copresence_ui_handler.cc
@@ -171,17 +171,17 @@ void CopresenceUIHandler::DirectivesUpdated() {
js_directives.Append(js_directive.release());
}
- web_ui()->CallJavascriptFunction("refreshDirectives", js_directives);
+ web_ui()->CallJavascriptFunctionUnsafe("refreshDirectives", js_directives);
}
void CopresenceUIHandler::TokenTransmitted(const TransmittedToken& token) {
- web_ui()->CallJavascriptFunction("updateTransmittedToken",
- *FormatToken(token));
+ web_ui()->CallJavascriptFunctionUnsafe("updateTransmittedToken",
+ *FormatToken(token));
}
void CopresenceUIHandler::TokenReceived(const ReceivedToken& token) {
- web_ui()->CallJavascriptFunction("updateReceivedToken",
- *FormatToken(token));
+ web_ui()->CallJavascriptFunctionUnsafe("updateReceivedToken",
+ *FormatToken(token));
}
void CopresenceUIHandler::HandlePopulateState(const ListValue* args) {
@@ -207,6 +207,6 @@ void CopresenceUIHandler::HandleClearState(const ListValue* args) {
DCHECK(state_);
state_->AddObserver(this);
- web_ui()->CallJavascriptFunction("clearTokens");
+ web_ui()->CallJavascriptFunctionUnsafe("clearTokens");
DirectivesUpdated();
}
« no previous file with comments | « chrome/browser/ui/webui/conflicts_ui.cc ('k') | chrome/browser/ui/webui/crashes_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698