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

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

Issue 2917873004: Implement 'Not secure' warning for non-secure pages in Incognito mode (Closed)
Patch Set: Remove obsolete includes Created 3 years, 6 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 | « components/security_state_strings.grdp ('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 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"
11 #include "base/metrics/histogram_macros.h" 11 #include "base/metrics/histogram_macros.h"
12 #include "components/security_state/core/security_state.h" 12 #include "components/security_state/core/security_state.h"
13 #include "ios/web/public/browser_state.h"
13 #include "ios/web/public/navigation_item.h" 14 #include "ios/web/public/navigation_item.h"
14 #import "ios/web/public/navigation_manager.h" 15 #import "ios/web/public/navigation_manager.h"
15 #import "ios/web/public/origin_util.h" 16 #import "ios/web/public/origin_util.h"
16 #include "ios/web/public/security_style.h" 17 #include "ios/web/public/security_style.h"
17 #include "ios/web/public/ssl_status.h" 18 #include "ios/web/public/ssl_status.h"
18 #include "ios/web/public/web_state/web_state.h" 19 #include "ios/web/public/web_state/web_state.h"
19 #include "net/cert/x509_certificate.h" 20 #include "net/cert/x509_certificate.h"
20 21
21 #if !defined(__has_feature) || !__has_feature(objc_arc) 22 #if !defined(__has_feature) || !__has_feature(objc_arc)
22 #error "This file requires ARC support." 23 #error "This file requires ARC support."
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 (ssl.content_status & web::SSLStatus::DISPLAYED_INSECURE_CONTENT) ? true 56 (ssl.content_status & web::SSLStatus::DISPLAYED_INSECURE_CONTENT) ? true
56 : false; 57 : false;
57 state->displayed_password_field_on_http = 58 state->displayed_password_field_on_http =
58 (ssl.content_status & web::SSLStatus::DISPLAYED_PASSWORD_FIELD_ON_HTTP) 59 (ssl.content_status & web::SSLStatus::DISPLAYED_PASSWORD_FIELD_ON_HTTP)
59 ? true 60 ? true
60 : false; 61 : false;
61 state->displayed_credit_card_field_on_http = 62 state->displayed_credit_card_field_on_http =
62 (ssl.content_status & web::SSLStatus::DISPLAYED_CREDIT_CARD_FIELD_ON_HTTP) 63 (ssl.content_status & web::SSLStatus::DISPLAYED_CREDIT_CARD_FIELD_ON_HTTP)
63 ? true 64 ? true
64 : false; 65 : false;
66 state->is_incognito = web_state_->GetBrowserState()->IsOffTheRecord();
67
65 return state; 68 return state;
66 } 69 }
OLDNEW
« no previous file with comments | « components/security_state_strings.grdp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698