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

Side by Side Diff: ios/chrome/browser/ssl/ios_security_state_tab_helper.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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 "ios/chrome/browser/ssl/ios_security_state_tab_helper.h" 5 #include "ios/chrome/browser/ssl/ios_security_state_tab_helper.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/memory/ptr_util.h" 9 #include "base/memory/ptr_util.h"
10 #include "base/metrics/field_trial.h" 10 #include "base/metrics/field_trial.h"
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 state->cert_status = ssl.cert_status; 52 state->cert_status = ssl.cert_status;
53 state->connection_status = ssl.connection_status; 53 state->connection_status = ssl.connection_status;
54 state->security_bits = ssl.security_bits; 54 state->security_bits = ssl.security_bits;
55 state->displayed_mixed_content = 55 state->displayed_mixed_content =
56 (ssl.content_status & web::SSLStatus::DISPLAYED_INSECURE_CONTENT) ? true 56 (ssl.content_status & web::SSLStatus::DISPLAYED_INSECURE_CONTENT) ? true
57 : false; 57 : false;
58 state->displayed_password_field_on_http = 58 state->displayed_password_field_on_http =
59 (ssl.content_status & web::SSLStatus::DISPLAYED_PASSWORD_FIELD_ON_HTTP) 59 (ssl.content_status & web::SSLStatus::DISPLAYED_PASSWORD_FIELD_ON_HTTP)
60 ? true 60 ? true
61 : false; 61 : false;
62 state->displayed_credit_card_field_on_http =
63 (ssl.content_status & web::SSLStatus::DISPLAYED_CREDIT_CARD_FIELD_ON_HTTP)
64 ? true
65 : false;
62 return state; 66 return state;
63 } 67 }
OLDNEW
« no previous file with comments | « ios/chrome/browser/autofill/autofill_controller_unittest.mm ('k') | ios/web/public/ssl_status.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698