| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/chrome_autofill_client.h" | 5 #include "chrome/browser/ui/autofill/chrome_autofill_client.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" |
| (...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 | 187 |
| 188 void ChromeAutofillClient::WebContentsDestroyed() { | 188 void ChromeAutofillClient::WebContentsDestroyed() { |
| 189 HideAutofillPopup(); | 189 HideAutofillPopup(); |
| 190 } | 190 } |
| 191 | 191 |
| 192 void ChromeAutofillClient::OnZoomChanged( | 192 void ChromeAutofillClient::OnZoomChanged( |
| 193 const ZoomController::ZoomChangedEventData& data) { | 193 const ZoomController::ZoomChangedEventData& data) { |
| 194 HideAutofillPopup(); | 194 HideAutofillPopup(); |
| 195 } | 195 } |
| 196 | 196 |
| 197 void ChromeAutofillClient::DetectAccountCreationForms( | |
| 198 const std::vector<autofill::FormStructure*>& forms) { | |
| 199 password_manager::PasswordGenerationManager* manager = | |
| 200 ChromePasswordManagerClient::GetGenerationManagerFromWebContents( | |
| 201 web_contents_); | |
| 202 if (manager) | |
| 203 manager->DetectAccountCreationForms(forms); | |
| 204 } | |
| 205 | |
| 206 void ChromeAutofillClient::DidFillOrPreviewField( | 197 void ChromeAutofillClient::DidFillOrPreviewField( |
| 207 const base::string16& autofilled_value, | 198 const base::string16& autofilled_value, |
| 208 const base::string16& profile_full_name) { | 199 const base::string16& profile_full_name) { |
| 209 #if defined(OS_ANDROID) | 200 #if defined(OS_ANDROID) |
| 210 AutofillLoggerAndroid::DidFillOrPreviewField(autofilled_value, | 201 AutofillLoggerAndroid::DidFillOrPreviewField(autofilled_value, |
| 211 profile_full_name); | 202 profile_full_name); |
| 212 #endif // defined(OS_ANDROID) | 203 #endif // defined(OS_ANDROID) |
| 213 } | 204 } |
| 214 | 205 |
| 215 } // namespace autofill | 206 } // namespace autofill |
| OLD | NEW |