| Index: chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc
|
| diff --git a/chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc b/chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc
|
| index e1123e3ef958e99ed5bcfbfd906c1e3d40be3efb..567a62d6b1276bc4bdc7a77729c74fe15e11c40d 100644
|
| --- a/chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc
|
| +++ b/chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc
|
| @@ -654,8 +654,10 @@ void AutofillDialogControllerImpl::Show() {
|
|
|
| // Fail if the author didn't specify autocomplete types.
|
| if (!has_types) {
|
| - callback_.Run(AutofillManagerDelegate::AutocompleteResultErrorUnsupported,
|
| - NULL);
|
| + callback_.Run(
|
| + AutofillManagerDelegate::AutocompleteResultErrorUnsupported,
|
| + base::ASCIIToUTF16("Form is missing autocomplete attributes."),
|
| + NULL);
|
| delete this;
|
| return;
|
| }
|
| @@ -2180,7 +2182,9 @@ bool AutofillDialogControllerImpl::OnCancel() {
|
| HidePopup();
|
| if (!is_submitting_)
|
| LogOnCancelMetrics();
|
| - callback_.Run(AutofillManagerDelegate::AutocompleteResultErrorCancel, NULL);
|
| + callback_.Run(AutofillManagerDelegate::AutocompleteResultErrorCancel,
|
| + base::string16(),
|
| + NULL);
|
| return true;
|
| }
|
|
|
| @@ -3752,6 +3756,7 @@ void AutofillDialogControllerImpl::DoFinishSubmit() {
|
|
|
| // Callback should be called as late as possible.
|
| callback_.Run(AutofillManagerDelegate::AutocompleteResultSuccess,
|
| + base::string16(),
|
| &form_structure_);
|
| data_was_passed_back_ = true;
|
|
|
|
|