OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/ui/autofill/autofill_dialog_controller_impl.h" | 5 #include "chrome/browser/ui/autofill/autofill_dialog_controller_impl.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/string_split.h" | 10 #include "base/string_split.h" |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 AutofillDialogController::~AutofillDialogController() {} | 122 AutofillDialogController::~AutofillDialogController() {} |
123 | 123 |
124 AutofillDialogControllerImpl::AutofillDialogControllerImpl( | 124 AutofillDialogControllerImpl::AutofillDialogControllerImpl( |
125 content::WebContents* contents, | 125 content::WebContents* contents, |
126 const FormData& form, | 126 const FormData& form, |
127 const GURL& source_url, | 127 const GURL& source_url, |
128 const content::SSLStatus& ssl_status, | 128 const content::SSLStatus& ssl_status, |
129 const base::Callback<void(const FormStructure*)>& callback) | 129 const base::Callback<void(const FormStructure*)>& callback) |
130 : profile_(Profile::FromBrowserContext(contents->GetBrowserContext())), | 130 : profile_(Profile::FromBrowserContext(contents->GetBrowserContext())), |
131 contents_(contents), | 131 contents_(contents), |
132 form_structure_(form), | 132 form_structure_(form, std::string()), |
133 source_url_(source_url), | 133 source_url_(source_url), |
134 ssl_status_(ssl_status), | 134 ssl_status_(ssl_status), |
135 callback_(callback), | 135 callback_(callback), |
136 wallet_client_(profile_->GetRequestContext()), | 136 wallet_client_(profile_->GetRequestContext()), |
137 ALLOW_THIS_IN_INITIALIZER_LIST(suggested_email_(this)), | 137 ALLOW_THIS_IN_INITIALIZER_LIST(suggested_email_(this)), |
138 ALLOW_THIS_IN_INITIALIZER_LIST(suggested_cc_(this)), | 138 ALLOW_THIS_IN_INITIALIZER_LIST(suggested_cc_(this)), |
139 ALLOW_THIS_IN_INITIALIZER_LIST(suggested_billing_(this)), | 139 ALLOW_THIS_IN_INITIALIZER_LIST(suggested_billing_(this)), |
140 ALLOW_THIS_IN_INITIALIZER_LIST(suggested_shipping_(this)), | 140 ALLOW_THIS_IN_INITIALIZER_LIST(suggested_shipping_(this)), |
141 section_showing_popup_(SECTION_BILLING) { | 141 section_showing_popup_(SECTION_BILLING) { |
142 // TODO(estade): |this| should observe PersonalDataManager. | 142 // TODO(estade): |this| should observe PersonalDataManager. |
(...skipping 808 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
951 DialogSection section) { | 951 DialogSection section) { |
952 return const_cast<DetailInputs*>(&RequestedFieldsForSection(section)); | 952 return const_cast<DetailInputs*>(&RequestedFieldsForSection(section)); |
953 } | 953 } |
954 | 954 |
955 void AutofillDialogControllerImpl::HidePopup() { | 955 void AutofillDialogControllerImpl::HidePopup() { |
956 if (popup_controller_) | 956 if (popup_controller_) |
957 popup_controller_->Hide(); | 957 popup_controller_->Hide(); |
958 } | 958 } |
959 | 959 |
960 } // namespace autofill | 960 } // namespace autofill |
OLD | NEW |