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

Unified Diff: chrome/browser/ui/webui/options/autofill_options_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/autofill_options_handler.cc
diff --git a/chrome/browser/ui/webui/options/autofill_options_handler.cc b/chrome/browser/ui/webui/options/autofill_options_handler.cc
index 8fa05b67f72d7a3def03d9d7bf212e3810f66260..1d276e6e28a2ec7abd156380c899297094e43196 100644
--- a/chrome/browser/ui/webui/options/autofill_options_handler.cc
+++ b/chrome/browser/ui/webui/options/autofill_options_handler.cc
@@ -355,7 +355,8 @@ void AutofillOptionsHandler::LoadAutofillData() {
addresses.Append(value.release());
}
- web_ui()->CallJavascriptFunction("AutofillOptions.setAddressList", addresses);
+ web_ui()->CallJavascriptFunctionUnsafe("AutofillOptions.setAddressList",
+ addresses);
base::ListValue credit_cards;
const std::vector<CreditCard*>& cards = personal_data_->GetCreditCards();
@@ -363,8 +364,8 @@ void AutofillOptionsHandler::LoadAutofillData() {
credit_cards.Append(CreditCardToDictionary(*card).release());
}
- web_ui()->CallJavascriptFunction("AutofillOptions.setCreditCardList",
- credit_cards);
+ web_ui()->CallJavascriptFunctionUnsafe("AutofillOptions.setCreditCardList",
+ credit_cards);
}
void AutofillOptionsHandler::RemoveData(const base::ListValue* args) {
@@ -401,7 +402,8 @@ void AutofillOptionsHandler::LoadAddressEditor(const base::ListValue* args) {
base::DictionaryValue address;
AutofillProfileToDictionary(*prior_profile, &address);
- web_ui()->CallJavascriptFunction("AutofillOptions.editAddress", address);
+ web_ui()->CallJavascriptFunctionUnsafe("AutofillOptions.editAddress",
+ address);
}
void AutofillOptionsHandler::LoadAddressEditorComponents(
@@ -420,7 +422,7 @@ void AutofillOptionsHandler::LoadAddressEditorComponents(
input.Set(kComponents, components.release());
input.SetString(kLanguageCode, language_code);
- web_ui()->CallJavascriptFunction(
+ web_ui()->CallJavascriptFunctionUnsafe(
"AutofillEditAddressOverlay.loadAddressComponents", input);
}
@@ -457,8 +459,8 @@ void AutofillOptionsHandler::LoadCreditCardEditor(const base::ListValue* args) {
"expirationYear",
credit_card->GetRawInfo(autofill::CREDIT_CARD_EXP_4_DIGIT_YEAR));
- web_ui()->CallJavascriptFunction("AutofillOptions.editCreditCard",
- credit_card_data);
+ web_ui()->CallJavascriptFunctionUnsafe("AutofillOptions.editCreditCard",
+ credit_card_data);
}
void AutofillOptionsHandler::SetAddress(const base::ListValue* args) {
« no previous file with comments | « chrome/browser/ui/webui/ntp/new_tab_ui.cc ('k') | chrome/browser/ui/webui/options/automatic_settings_reset_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698