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/tab_autofill_manager_delegate.h" | 5 #include "chrome/browser/ui/autofill/tab_autofill_manager_delegate.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/prefs/pref_service.h" | 8 #include "base/prefs/pref_service.h" |
9 #include "chrome/browser/autofill/autofill_cc_infobar_delegate.h" | 9 #include "chrome/browser/autofill/autofill_cc_infobar_delegate.h" |
10 #include "chrome/browser/autofill/personal_data_manager_factory.h" | 10 #include "chrome/browser/autofill/personal_data_manager_factory.h" |
11 #include "chrome/browser/infobars/infobar_service.h" | 11 #include "chrome/browser/infobars/infobar_service.h" |
| 12 #include "chrome/browser/password_manager/password_generation_manager.h" |
12 #include "chrome/browser/profiles/profile.h" | 13 #include "chrome/browser/profiles/profile.h" |
13 #include "chrome/browser/ui/autofill/autofill_dialog_controller.h" | 14 #include "chrome/browser/ui/autofill/autofill_dialog_controller.h" |
14 #include "chrome/browser/ui/autofill/autofill_popup_controller_impl.h" | 15 #include "chrome/browser/ui/autofill/autofill_popup_controller_impl.h" |
15 #include "chrome/browser/ui/browser.h" | 16 #include "chrome/browser/ui/browser.h" |
16 #include "chrome/browser/ui/browser_finder.h" | 17 #include "chrome/browser/ui/browser_finder.h" |
17 #include "chrome/browser/ui/browser_window.h" | 18 #include "chrome/browser/ui/browser_window.h" |
18 #include "chrome/browser/ui/chrome_pages.h" | 19 #include "chrome/browser/ui/chrome_pages.h" |
19 #include "chrome/browser/ui/tabs/tab_strip_model_observer.h" | 20 #include "chrome/browser/ui/tabs/tab_strip_model_observer.h" |
20 #include "chrome/common/url_constants.h" | 21 #include "chrome/common/url_constants.h" |
21 #include "components/autofill/content/browser/autofill_driver_impl.h" | 22 #include "components/autofill/content/browser/autofill_driver_impl.h" |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 return; | 165 return; |
165 | 166 |
166 HideRequestAutocompleteDialog(); | 167 HideRequestAutocompleteDialog(); |
167 } | 168 } |
168 | 169 |
169 void TabAutofillManagerDelegate::WebContentsDestroyed( | 170 void TabAutofillManagerDelegate::WebContentsDestroyed( |
170 content::WebContents* web_contents) { | 171 content::WebContents* web_contents) { |
171 HideAutofillPopup(); | 172 HideAutofillPopup(); |
172 } | 173 } |
173 | 174 |
| 175 void TabAutofillManagerDelegate::DetectAccountCreationForms( |
| 176 const std::vector<autofill::FormStructure*>& forms) { |
| 177 PasswordGenerationManager* manager = |
| 178 PasswordGenerationManager::FromWebContents(web_contents_); |
| 179 if (manager) |
| 180 manager->DetectAccountCreationForms(forms); |
| 181 } |
| 182 |
174 } // namespace autofill | 183 } // namespace autofill |
OLD | NEW |