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

Unified Diff: components/autofill/ios/browser/autofill_driver_ios.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 | « no previous file | ios/chrome/browser/autofill/autofill_controller_unittest.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/autofill/ios/browser/autofill_driver_ios.mm
diff --git a/components/autofill/ios/browser/autofill_driver_ios.mm b/components/autofill/ios/browser/autofill_driver_ios.mm
index f867cd6518273412a92dc18b8069f8352245159c..08384ae36adb7b475c728b2fb077cb62dfd294eb 100644
--- a/components/autofill/ios/browser/autofill_driver_ios.mm
+++ b/components/autofill/ios/browser/autofill_driver_ios.mm
@@ -6,6 +6,7 @@
#include "components/autofill/ios/browser/autofill_driver_ios_bridge.h"
#include "ios/web/public/browser_state.h"
+#import "ios/web/public/origin_util.h"
#include "ios/web/public/web_state/web_state.h"
#include "ios/web/public/web_thread.h"
#include "ui/gfx/geometry/rect_f.h"
@@ -82,7 +83,10 @@ void AutofillDriverIOS::RendererShouldAcceptDataListSuggestion(
const base::string16& value) {
}
-void AutofillDriverIOS::DidInteractWithCreditCardForm() {}
+void AutofillDriverIOS::DidInteractWithCreditCardForm() {
+ if (!web::IsOriginSecure(web_state_->GetLastCommittedURL()))
+ web_state_->OnCreditCardInputShownOnHttp();
+}
void AutofillDriverIOS::RendererShouldClearFilledForm() {
}
« no previous file with comments | « no previous file | ios/chrome/browser/autofill/autofill_controller_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698