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

Side by Side Diff: ios/chrome/browser/ui/autofill/autofill_client_ios.mm

Issue 1136473006: Don't autofill credit cards on non-secure pages (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add comments Created 5 years, 5 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
« no previous file with comments | « ios/chrome/browser/ui/autofill/autofill_client_ios.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #import "ios/chrome/browser/ui/autofill/autofill_client_ios.h" 5 #import "ios/chrome/browser/ui/autofill/autofill_client_ios.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/prefs/pref_service.h" 8 #include "base/prefs/pref_service.h"
9 #include "components/autofill/core/browser/autofill_cc_infobar_delegate.h" 9 #include "components/autofill/core/browser/autofill_cc_infobar_delegate.h"
10 #include "components/autofill/core/browser/ui/card_unmask_prompt_view.h" 10 #include "components/autofill/core/browser/ui/card_unmask_prompt_view.h"
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 void AutofillClientIOS::DidFillOrPreviewField( 145 void AutofillClientIOS::DidFillOrPreviewField(
146 const base::string16& autofilled_value, 146 const base::string16& autofilled_value,
147 const base::string16& profile_full_name) { 147 const base::string16& profile_full_name) {
148 } 148 }
149 149
150 scoped_refptr<AutofillWebDataService> AutofillClientIOS::GetDatabase() { 150 scoped_refptr<AutofillWebDataService> AutofillClientIOS::GetDatabase() {
151 return ios::GetKeyedServiceProvider()->GetAutofillWebDataForBrowserState( 151 return ios::GetKeyedServiceProvider()->GetAutofillWebDataForBrowserState(
152 browser_state_, ServiceAccessType::EXPLICIT_ACCESS); 152 browser_state_, ServiceAccessType::EXPLICIT_ACCESS);
153 } 153 }
154 154
155 bool AutofillClientIOS::IsContextSecure(const GURL& form_origin) {
156 // TODO (sigbjorn): Return if the context is secure, not just
157 // the form_origin. See crbug.com/505388
Justin Donnelly 2015/07/07 14:18:16 Add period to the end.
158 return form_origin.SchemeIsCryptographic();
159 }
160
155 void AutofillClientIOS::OnFirstUserGestureObserved() { 161 void AutofillClientIOS::OnFirstUserGestureObserved() {
156 // TODO(gcasto): [Merge 306796] http://crbug.com/439425 Verify if this method 162 // TODO(gcasto): [Merge 306796] http://crbug.com/439425 Verify if this method
157 // needs a real implementation or not. 163 // needs a real implementation or not.
158 NOTIMPLEMENTED(); 164 NOTIMPLEMENTED();
159 } 165 }
160 166
161 void AutofillClientIOS::LinkClicked(const GURL& url, 167 void AutofillClientIOS::LinkClicked(const GURL& url,
162 WindowOpenDisposition disposition) { 168 WindowOpenDisposition disposition) {
163 NOTIMPLEMENTED(); 169 NOTIMPLEMENTED();
164 } 170 }
165 171
166 } // namespace autofill 172 } // namespace autofill
OLDNEW
« no previous file with comments | « ios/chrome/browser/ui/autofill/autofill_client_ios.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698