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

Unified Diff: chrome/browser/ui/webui/identity_internals_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
« no previous file with comments | « chrome/browser/ui/webui/history_login_handler.cc ('k') | chrome/browser/ui/webui/inspect_ui.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/identity_internals_ui.cc
diff --git a/chrome/browser/ui/webui/identity_internals_ui.cc b/chrome/browser/ui/webui/identity_internals_ui.cc
index 0d2aa2b340723145f164ca7d41c31d447a6bdb88..5b8da5f6ff682a485b0c505c30829aa4126b19c3 100644
--- a/chrome/browser/ui/webui/identity_internals_ui.cc
+++ b/chrome/browser/ui/webui/identity_internals_ui.cc
@@ -155,8 +155,8 @@ void IdentityInternalsUIMessageHandler::OnTokenRevokerDone(
// Update view about the token being removed.
base::ListValue result;
result.AppendString(token_revoker->access_token());
- web_ui()->CallJavascriptFunction("identity_internals.tokenRevokeDone",
- result);
+ web_ui()->CallJavascriptFunctionUnsafe("identity_internals.tokenRevokeDone",
+ result);
// Erase the revoker.
ScopedVector<IdentityInternalsTokenRevoker>::iterator iter =
@@ -238,7 +238,8 @@ void IdentityInternalsUIMessageHandler::GetInfoForAllTokens(
results.Append(GetInfoForToken(iter->first, iter->second));
}
- web_ui()->CallJavascriptFunction("identity_internals.returnTokens", results);
+ web_ui()->CallJavascriptFunctionUnsafe("identity_internals.returnTokens",
+ results);
}
void IdentityInternalsUIMessageHandler::RegisterMessages() {
« no previous file with comments | « chrome/browser/ui/webui/history_login_handler.cc ('k') | chrome/browser/ui/webui/inspect_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698