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

Side by Side Diff: components/autofill/core/browser/test_autofill_client.cc

Issue 1136473006: Don't autofill credit cards on non-secure pages (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove default fallback for IsContextSecure, implement in inherited classes 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
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 "components/autofill/core/browser/test_autofill_client.h" 5 #include "components/autofill/core/browser/test_autofill_client.h"
6 6
7 #include "components/autofill/core/browser/webdata/autofill_webdata_service.h" 7 #include "components/autofill/core/browser/webdata/autofill_webdata_service.h"
8 8
9 namespace autofill { 9 namespace autofill {
10 10
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 const base::string16& profile_full_name) { 97 const base::string16& profile_full_name) {
98 } 98 }
99 99
100 void TestAutofillClient::OnFirstUserGestureObserved() { 100 void TestAutofillClient::OnFirstUserGestureObserved() {
101 } 101 }
102 102
103 void TestAutofillClient::LinkClicked(const GURL& url, 103 void TestAutofillClient::LinkClicked(const GURL& url,
104 WindowOpenDisposition disposition) { 104 WindowOpenDisposition disposition) {
105 } 105 }
106 106
107 bool TestAutofillClient::IsContextSecure(const GURL& form_origin) {
108 return is_context_secure_;
109 }
110
111 void TestAutofillClient::SetContextSecurity(bool is_context_secure) {
112 is_context_secure_ = is_context_secure;
113 }
114
107 } // namespace autofill 115 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698