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

Unified Diff: chrome/browser/ui/webui/signin/sync_confirmation_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/signin/sync_confirmation_handler.cc
diff --git a/chrome/browser/ui/webui/signin/sync_confirmation_handler.cc b/chrome/browser/ui/webui/signin/sync_confirmation_handler.cc
index 5c2ab867fc968d07c23cc1ac0587b05ff937e30a..b538951d47f26e5dc6aeec41d7fdde8ebaf10077 100644
--- a/chrome/browser/ui/webui/signin/sync_confirmation_handler.cc
+++ b/chrome/browser/ui/webui/signin/sync_confirmation_handler.cc
@@ -79,8 +79,8 @@ void SyncConfirmationHandler::SetUserImageURL(const std::string& picture_url) {
kProfileImageSize,
&url)) {
base::StringValue picture_url_value(url.spec());
- web_ui()->CallJavascriptFunction(
- "sync.confirmation.setUserImageURL", picture_url_value);
+ web_ui()->CallJavascriptFunctionUnsafe("sync.confirmation.setUserImageURL",
+ picture_url_value);
}
}
@@ -138,5 +138,5 @@ void SyncConfirmationHandler::HandleInitializedWithSize(
// TODO(anthonyvd): Figure out why this is needed on Mac and not other
// platforms and if there's a way to start unfocused while avoiding this
// workaround.
- web_ui()->CallJavascriptFunction("sync.confirmation.clearFocus");
+ web_ui()->CallJavascriptFunctionUnsafe("sync.confirmation.clearFocus");
}

Powered by Google App Engine
This is Rietveld 408576698