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

Unified Diff: ios/web/web_state/ui/crw_web_controller.mm

Issue 2669123003: iOS: Mark HTTP pages with credit card fields with an omnibox icon. (Closed)
Patch Set: Update comments. Created 3 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ios/web/web_state/ui/crw_web_controller.h ('k') | ios/web/web_state/ui/crw_web_controller_unittest.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/web_state/ui/crw_web_controller.mm
diff --git a/ios/web/web_state/ui/crw_web_controller.mm b/ios/web/web_state/ui/crw_web_controller.mm
index 8413d95dc1115ce2e6e0b9198cb0af7b838d8ce7..bae20762ce82025b59d323c24401e3c90cfbc737 100644
--- a/ios/web/web_state/ui/crw_web_controller.mm
+++ b/ios/web/web_state/ui/crw_web_controller.mm
@@ -4278,6 +4278,15 @@ const NSTimeInterval kSnapshotOverlayTransition = 0.5;
[self didUpdateSSLStatusForCurrentNavigationItem];
}
+- (void)didShowCreditCardInputOnHTTP {
+ DCHECK(!web::IsOriginSecure(self.webState->GetLastCommittedURL()));
+ web::NavigationItem* item =
+ self.webState->GetNavigationManager()->GetLastCommittedItem();
+ item->GetSSL().content_status |=
+ web::SSLStatus::DISPLAYED_CREDIT_CARD_FIELD_ON_HTTP;
+ [self didUpdateSSLStatusForCurrentNavigationItem];
+}
+
- (void)handleSSLCertError:(NSError*)error {
CHECK(web::IsWKWebViewSSLCertError(error));
« no previous file with comments | « ios/web/web_state/ui/crw_web_controller.h ('k') | ios/web/web_state/ui/crw_web_controller_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698