Chromium Code Reviews| 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 efff4f6e8cef18ad352f3d008e050ea50c861a72..ad78f973cf0bf7c6b0ebc7f1c9ae7654a0216a37 100644 |
| --- a/chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc |
| +++ b/chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc |
| @@ -840,7 +840,7 @@ void AutofillDialogControllerImpl::EditClickedForSection( |
| scoped_ptr<DataModelWrapper> model = CreateWrapper(section); |
| model->FillInputs(inputs); |
| section_editing_state_[section] = true; |
| - view_->UpdateSection(section); |
| + view_->UpdateSection(section, true); |
| } |
| void AutofillDialogControllerImpl::EditCancelledForSection( |
| @@ -849,7 +849,7 @@ void AutofillDialogControllerImpl::EditCancelledForSection( |
| for (size_t i = 0; i < inputs->size(); ++i) |
| (*inputs)[i].initial_value.clear(); |
| section_editing_state_[section] = false; |
| - view_->UpdateSection(section); |
| + view_->UpdateSection(section, true); |
| } |
| gfx::Image AutofillDialogControllerImpl::IconForField( |
| @@ -1259,7 +1259,7 @@ void AutofillDialogControllerImpl::DidAcceptSuggestion(const string16& value, |
| FillInputFromFormGroup( |
| form_group, |
| MutableRequestedFieldsForSection(section_showing_popup_)); |
| - view_->UpdateSection(section_showing_popup_); |
| + view_->UpdateSection(section_showing_popup_, false); |
|
Ilya Sherman
2013/04/04 03:59:55
Why is it the view's responsibility to deal with w
Evan Stade
2013/04/04 17:56:51
because the view handles user input
Ilya Sherman
2013/04/04 23:11:02
Ok, I guess the view code isn't likely to ever be
|
| metric_logger_.LogDialogPopupEvent( |
| dialog_type_, AutofillMetrics::DIALOG_POPUP_FORM_FILLED); |