Index: chrome/browser/ui/webui/options/supervised_user_create_confirm_handler.cc |
diff --git a/chrome/browser/ui/webui/options/supervised_user_create_confirm_handler.cc b/chrome/browser/ui/webui/options/supervised_user_create_confirm_handler.cc |
index 0d418822ed5aae0e4c7a464141f9ac5b08e170ab..d0f803701e5a8a9c7199dbaf0a0bdf469eaef808 100644 |
--- a/chrome/browser/ui/webui/options/supervised_user_create_confirm_handler.cc |
+++ b/chrome/browser/ui/webui/options/supervised_user_create_confirm_handler.cc |
@@ -56,7 +56,7 @@ class SupervisedUserCreateConfirmHandler::ProfileUpdateObserver |
const base::string16& profile_name) override { |
std::unique_ptr<base::StringValue> profile_path_value( |
base::CreateFilePathValue(profile_path)); |
- create_confirm_handler_->web_ui()->CallJavascriptFunction( |
+ create_confirm_handler_->web_ui()->CallJavascriptFunctionUnsafe( |
"SupervisedUserCreateConfirmOverlay.onDeletedProfile", |
*profile_path_value); |
} |
@@ -70,10 +70,9 @@ class SupervisedUserCreateConfirmHandler::ProfileUpdateObserver |
base::string16 new_profile_name = entry->GetName(); |
std::unique_ptr<base::StringValue> profile_path_value( |
base::CreateFilePathValue(profile_path)); |
- create_confirm_handler_->web_ui()->CallJavascriptFunction( |
+ create_confirm_handler_->web_ui()->CallJavascriptFunctionUnsafe( |
"SupervisedUserCreateConfirmOverlay.onUpdatedProfileName", |
- *profile_path_value, |
- base::StringValue(new_profile_name)); |
+ *profile_path_value, base::StringValue(new_profile_name)); |
} |
// Weak. |