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