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

Unified Diff: chrome/browser/ui/webui/options/create_profile_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/create_profile_handler.cc
diff --git a/chrome/browser/ui/webui/options/create_profile_handler.cc b/chrome/browser/ui/webui/options/create_profile_handler.cc
index 85aebd77c301d581cadbca460a58f2a568f242d4..b43411972b668d54fcc9527cb88c640e04d66e13 100644
--- a/chrome/browser/ui/webui/options/create_profile_handler.cc
+++ b/chrome/browser/ui/webui/options/create_profile_handler.cc
@@ -200,7 +200,7 @@ void CreateProfileHandler::CreateShortcutAndShowSuccess(bool create_shortcut,
profile_creation_type_ == SUPERVISED_PROFILE_IMPORT;
dict.SetBoolean("isSupervised", is_supervised);
#endif
- web_ui()->CallJavascriptFunction(
+ web_ui()->CallJavascriptFunctionUnsafe(
GetJavascriptMethodName(PROFILE_CREATION_SUCCESS), dict);
// If the new profile is a supervised user, instead of opening a new window
@@ -228,7 +228,7 @@ void CreateProfileHandler::ShowProfileCreationError(
DCHECK_NE(NO_CREATION_IN_PROGRESS, profile_creation_type_);
profile_creation_type_ = NO_CREATION_IN_PROGRESS;
profile_path_being_created_.clear();
- web_ui()->CallJavascriptFunction(
+ web_ui()->CallJavascriptFunctionUnsafe(
GetJavascriptMethodName(PROFILE_CREATION_ERROR),
base::StringValue(error));
// The ProfileManager calls us back with a NULL profile in some cases.
@@ -431,8 +431,8 @@ void CreateProfileHandler::OnSupervisedUserRegistered(
void CreateProfileHandler::ShowProfileCreationWarning(
const base::string16& warning) {
DCHECK_EQ(SUPERVISED_PROFILE_CREATION, profile_creation_type_);
- web_ui()->CallJavascriptFunction("BrowserOptions.showCreateProfileWarning",
- base::StringValue(warning));
+ web_ui()->CallJavascriptFunctionUnsafe(
+ "BrowserOptions.showCreateProfileWarning", base::StringValue(warning));
}
void CreateProfileHandler::RecordSupervisedProfileCreationMetrics(
« no previous file with comments | « chrome/browser/ui/webui/options/core_options_handler.cc ('k') | chrome/browser/ui/webui/options/easy_unlock_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698