| 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 <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| (...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 304 return; | 304 return; |
| 305 #endif | 305 #endif |
| 306 | 306 |
| 307 HideAutofillPopup(); | 307 HideAutofillPopup(); |
| 308 } | 308 } |
| 309 | 309 |
| 310 void ChromeAutofillClient::WebContentsDestroyed() { | 310 void ChromeAutofillClient::WebContentsDestroyed() { |
| 311 HideAutofillPopup(); | 311 HideAutofillPopup(); |
| 312 } | 312 } |
| 313 | 313 |
| 314 #if !defined(OS_ANDROID) |
| 314 void ChromeAutofillClient::OnZoomChanged( | 315 void ChromeAutofillClient::OnZoomChanged( |
| 315 const zoom::ZoomController::ZoomChangedEventData& data) { | 316 const zoom::ZoomController::ZoomChangedEventData& data) { |
| 316 HideAutofillPopup(); | 317 HideAutofillPopup(); |
| 317 } | 318 } |
| 319 #endif // !defined(OS_ANDROID) |
| 318 | 320 |
| 319 void ChromeAutofillClient::PropagateAutofillPredictions( | 321 void ChromeAutofillClient::PropagateAutofillPredictions( |
| 320 content::RenderFrameHost* rfh, | 322 content::RenderFrameHost* rfh, |
| 321 const std::vector<autofill::FormStructure*>& forms) { | 323 const std::vector<autofill::FormStructure*>& forms) { |
| 322 password_manager::ContentPasswordManagerDriver* driver = | 324 password_manager::ContentPasswordManagerDriver* driver = |
| 323 password_manager::ContentPasswordManagerDriver::GetForRenderFrameHost( | 325 password_manager::ContentPasswordManagerDriver::GetForRenderFrameHost( |
| 324 rfh); | 326 rfh); |
| 325 if (driver) { | 327 if (driver) { |
| 326 driver->GetPasswordGenerationManager()->DetectFormsEligibleForGeneration( | 328 driver->GetPasswordGenerationManager()->DetectFormsEligibleForGeneration( |
| 327 forms); | 329 forms); |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 389 // directly. | 391 // directly. |
| 390 const GURL kSecurityIndicatorHelpCenterUrl( | 392 const GURL kSecurityIndicatorHelpCenterUrl( |
| 391 "https://support.google.com/chrome/?p=ui_security_indicator"); | 393 "https://support.google.com/chrome/?p=ui_security_indicator"); |
| 392 web_contents()->OpenURL(content::OpenURLParams( | 394 web_contents()->OpenURL(content::OpenURLParams( |
| 393 GURL(kSecurityIndicatorHelpCenterUrl), content::Referrer(), | 395 GURL(kSecurityIndicatorHelpCenterUrl), content::Referrer(), |
| 394 WindowOpenDisposition::NEW_FOREGROUND_TAB, ui::PAGE_TRANSITION_LINK, | 396 WindowOpenDisposition::NEW_FOREGROUND_TAB, ui::PAGE_TRANSITION_LINK, |
| 395 false /* is_renderer_initiated */)); | 397 false /* is_renderer_initiated */)); |
| 396 } | 398 } |
| 397 | 399 |
| 398 } // namespace autofill | 400 } // namespace autofill |
| OLD | NEW |