| Index: chrome/browser/ui/views/payments/profile_list_view_controller.cc
|
| diff --git a/chrome/browser/ui/views/payments/profile_list_view_controller.cc b/chrome/browser/ui/views/payments/profile_list_view_controller.cc
|
| index fa6cf938fdb683fe385b49beda760855718d0a3e..8accd9e08c96baddda2d28de116e8d45f3fa98b4 100644
|
| --- a/chrome/browser/ui/views/payments/profile_list_view_controller.cc
|
| +++ b/chrome/browser/ui/views/payments/profile_list_view_controller.cc
|
| @@ -121,6 +121,10 @@ class ShippingProfileViewController : public ProfileListViewController {
|
| return state()->shipping_profiles();
|
| }
|
|
|
| + DialogViewID GetDialogViewId() override {
|
| + return DialogViewID::SHIPPING_ADDRESS_SHEET_LIST_VIEW;
|
| + }
|
| +
|
| base::string16 GetSheetTitle() override {
|
| return GetShippingAddressSectionString(spec()->shipping_type());
|
| }
|
| @@ -177,6 +181,10 @@ class ContactProfileViewController : public ProfileListViewController {
|
| return state()->contact_profiles();
|
| }
|
|
|
| + DialogViewID GetDialogViewId() override {
|
| + return DialogViewID::CONTACT_INFO_SHEET_LIST_VIEW;
|
| + }
|
| +
|
| base::string16 GetSheetTitle() override {
|
| return l10n_util::GetStringUTF16(
|
| IDS_PAYMENT_REQUEST_CONTACT_INFO_SECTION_NAME);
|
| @@ -245,7 +253,9 @@ void ProfileListViewController::PopulateList() {
|
|
|
| void ProfileListViewController::FillContentView(views::View* content_view) {
|
| content_view->SetLayoutManager(new views::FillLayout);
|
| - content_view->AddChildView(list_.CreateListView().release());
|
| + std::unique_ptr<views::View> list_view = list_.CreateListView();
|
| + list_view->set_id(static_cast<int>(GetDialogViewId()));
|
| + content_view->AddChildView(list_view.release());
|
| }
|
|
|
| std::unique_ptr<views::View>
|
|
|