Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(346)

Side by Side Diff: chrome/browser/ui/autofill/chrome_autofill_client.cc

Issue 2905343002: Show interstitial on a password on focus ping with PHISHING verdict. (Closed)
Patch Set: nit Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 void ChromeAutofillClient::DidAttachInterstitialPage() {
314 HideAutofillPopup();
315 }
316
313 #if !defined(OS_ANDROID) 317 #if !defined(OS_ANDROID)
314 void ChromeAutofillClient::OnZoomChanged( 318 void ChromeAutofillClient::OnZoomChanged(
315 const zoom::ZoomController::ZoomChangedEventData& data) { 319 const zoom::ZoomController::ZoomChangedEventData& data) {
316 HideAutofillPopup(); 320 HideAutofillPopup();
317 } 321 }
318 #endif // !defined(OS_ANDROID) 322 #endif // !defined(OS_ANDROID)
319 323
320 void ChromeAutofillClient::PropagateAutofillPredictions( 324 void ChromeAutofillClient::PropagateAutofillPredictions(
321 content::RenderFrameHost* rfh, 325 content::RenderFrameHost* rfh,
322 const std::vector<autofill::FormStructure*>& forms) { 326 const std::vector<autofill::FormStructure*>& forms) {
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
390 // directly. 394 // directly.
391 const GURL kSecurityIndicatorHelpCenterUrl( 395 const GURL kSecurityIndicatorHelpCenterUrl(
392 "https://support.google.com/chrome/?p=ui_security_indicator"); 396 "https://support.google.com/chrome/?p=ui_security_indicator");
393 web_contents()->OpenURL(content::OpenURLParams( 397 web_contents()->OpenURL(content::OpenURLParams(
394 GURL(kSecurityIndicatorHelpCenterUrl), content::Referrer(), 398 GURL(kSecurityIndicatorHelpCenterUrl), content::Referrer(),
395 WindowOpenDisposition::NEW_FOREGROUND_TAB, ui::PAGE_TRANSITION_LINK, 399 WindowOpenDisposition::NEW_FOREGROUND_TAB, ui::PAGE_TRANSITION_LINK,
396 false /* is_renderer_initiated */)); 400 false /* is_renderer_initiated */));
397 } 401 }
398 402
399 } // namespace autofill 403 } // namespace autofill
OLDNEW
« no previous file with comments | « chrome/browser/ui/autofill/chrome_autofill_client.h ('k') | components/safe_browsing/base_blocking_page.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698