Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 "android_webview/native/aw_autofill_client.h" | 5 #include "android_webview/native/aw_autofill_client.h" |
| 6 | 6 |
| 7 #include "android_webview/browser/aw_browser_context.h" | 7 #include "android_webview/browser/aw_browser_context.h" |
| 8 #include "android_webview/browser/aw_content_browser_client.h" | 8 #include "android_webview/browser/aw_content_browser_client.h" |
| 9 #include "android_webview/browser/aw_form_database_service.h" | 9 #include "android_webview/browser/aw_form_database_service.h" |
| 10 #include "android_webview/native/aw_contents.h" | 10 #include "android_webview/native/aw_contents.h" |
| (...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 189 content::SSLStatus ssl_status; | 189 content::SSLStatus ssl_status; |
| 190 content::NavigationEntry* navigation_entry = | 190 content::NavigationEntry* navigation_entry = |
| 191 web_contents_->GetController().GetLastCommittedEntry(); | 191 web_contents_->GetController().GetLastCommittedEntry(); |
| 192 if (!navigation_entry) | 192 if (!navigation_entry) |
| 193 return false; | 193 return false; |
| 194 | 194 |
| 195 ssl_status = navigation_entry->GetSSL(); | 195 ssl_status = navigation_entry->GetSSL(); |
| 196 // Note: The implementation below is a copy of the one in | 196 // Note: The implementation below is a copy of the one in |
| 197 // ChromeAutofillClient::IsContextSecure, and should be kept in sync | 197 // ChromeAutofillClient::IsContextSecure, and should be kept in sync |
| 198 // until crbug.com/505388 gets implemented. | 198 // until crbug.com/505388 gets implemented. |
| 199 return ssl_status.security_style == content::SECURITY_STYLE_AUTHENTICATED && | 199 return navigation_entry->GetURL().SchemeIsCryptographic() && |
|
estark
2016/10/06 22:00:17
This is the part that is most sketchy, IMO. AwAuto
felt
2016/10/07 03:30:47
Were these the only callers that you found? If so
estark
2016/10/07 06:34:31
The bots found another one, which is this weird ch
felt
2016/10/07 15:08:10
I've never seen that policy auditor thing before.
| |
| 200 ssl_status.certificate && | |
| 201 (!net::IsCertStatusError(ssl_status.cert_status) || | |
| 202 net::IsCertStatusMinorError(ssl_status.cert_status)) && | |
| 200 !(ssl_status.content_status & | 203 !(ssl_status.content_status & |
| 201 content::SSLStatus::RAN_INSECURE_CONTENT); | 204 content::SSLStatus::RAN_INSECURE_CONTENT); |
| 202 } | 205 } |
| 203 | 206 |
| 204 bool AwAutofillClient::ShouldShowSigninPromo() { | 207 bool AwAutofillClient::ShouldShowSigninPromo() { |
| 205 return false; | 208 return false; |
| 206 } | 209 } |
| 207 | 210 |
| 208 void AwAutofillClient::StartSigninFlow() {} | 211 void AwAutofillClient::StartSigninFlow() {} |
| 209 | 212 |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 267 | 270 |
| 268 void AwAutofillClient::ScanCreditCard(const CreditCardScanCallback& callback) { | 271 void AwAutofillClient::ScanCreditCard(const CreditCardScanCallback& callback) { |
| 269 NOTIMPLEMENTED(); | 272 NOTIMPLEMENTED(); |
| 270 } | 273 } |
| 271 | 274 |
| 272 bool RegisterAwAutofillClient(JNIEnv* env) { | 275 bool RegisterAwAutofillClient(JNIEnv* env) { |
| 273 return RegisterNativesImpl(env); | 276 return RegisterNativesImpl(env); |
| 274 } | 277 } |
| 275 | 278 |
| 276 } // namespace android_webview | 279 } // namespace android_webview |
| OLD | NEW |