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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 AutofillDialogController::~AutofillDialogController() {} | 119 AutofillDialogController::~AutofillDialogController() {} |
120 | 120 |
121 AutofillDialogControllerImpl::AutofillDialogControllerImpl( | 121 AutofillDialogControllerImpl::AutofillDialogControllerImpl( |
122 content::WebContents* contents, | 122 content::WebContents* contents, |
123 const FormData& form, | 123 const FormData& form, |
124 const GURL& source_url, | 124 const GURL& source_url, |
125 const content::SSLStatus& ssl_status, | 125 const content::SSLStatus& ssl_status, |
126 const base::Callback<void(const FormStructure*)>& callback) | 126 const base::Callback<void(const FormStructure*)>& callback) |
127 : profile_(Profile::FromBrowserContext(contents->GetBrowserContext())), | 127 : profile_(Profile::FromBrowserContext(contents->GetBrowserContext())), |
128 contents_(contents), | 128 contents_(contents), |
129 form_structure_(form), | 129 form_structure_(form, std::string()), |
130 source_url_(source_url), | 130 source_url_(source_url), |
131 ssl_status_(ssl_status), | 131 ssl_status_(ssl_status), |
132 callback_(callback), | 132 callback_(callback), |
133 ALLOW_THIS_IN_INITIALIZER_LIST(suggested_email_(this)), | 133 ALLOW_THIS_IN_INITIALIZER_LIST(suggested_email_(this)), |
134 ALLOW_THIS_IN_INITIALIZER_LIST(suggested_cc_(this)), | 134 ALLOW_THIS_IN_INITIALIZER_LIST(suggested_cc_(this)), |
135 ALLOW_THIS_IN_INITIALIZER_LIST(suggested_billing_(this)), | 135 ALLOW_THIS_IN_INITIALIZER_LIST(suggested_billing_(this)), |
136 ALLOW_THIS_IN_INITIALIZER_LIST(suggested_shipping_(this)), | 136 ALLOW_THIS_IN_INITIALIZER_LIST(suggested_shipping_(this)), |
137 popup_controller_(NULL), | 137 popup_controller_(NULL), |
138 section_showing_popup_(SECTION_BILLING) { | 138 section_showing_popup_(SECTION_BILLING) { |
139 // TODO(estade): |this| should observe PersonalDataManager. | 139 // TODO(estade): |this| should observe PersonalDataManager. |
(...skipping 660 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
800 } | 800 } |
801 | 801 |
802 void AutofillDialogControllerImpl::HidePopup() { | 802 void AutofillDialogControllerImpl::HidePopup() { |
803 if (popup_controller_) { | 803 if (popup_controller_) { |
804 popup_controller_->Hide(); | 804 popup_controller_->Hide(); |
805 ControllerDestroyed(); | 805 ControllerDestroyed(); |
806 } | 806 } |
807 } | 807 } |
808 | 808 |
809 } // namespace autofill | 809 } // namespace autofill |
OLD | NEW |