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

Side by Side Diff: ios/chrome/browser/ssl/ios_security_state_tab_helper.mm

Issue 2466143002: iOS: Mark HTTP pages with password fields with an omnibox icon. (Closed)
Patch Set: iOS HTTP Bad. Created 4 years 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 state->connection_info_initialized = true; 48 state->connection_info_initialized = true;
49 state->url = item->GetURL(); 49 state->url = item->GetURL();
50 const web::SSLStatus& ssl = item->GetSSL(); 50 const web::SSLStatus& ssl = item->GetSSL();
51 state->certificate = ssl.certificate; 51 state->certificate = ssl.certificate;
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 =
59 (ssl.content_status & web::SSLStatus::DISPLAYED_PASSWORD_FIELD_ON_HTTP)
60 ? true
61 : false;
58 return state; 62 return state;
59 } 63 }
OLDNEW
« no previous file with comments | « ios/chrome/browser/passwords/password_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