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

Side by Side Diff: chrome/browser/ssl/chrome_security_state_model_client.cc

Issue 2350273002: Add SSLStatus flags to feed HTTP_WARNING security level (Closed)
Patch Set: fix comment typos Created 4 years, 3 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "chrome/browser/ssl/chrome_security_state_model_client.h" 5 #include "chrome/browser/ssl/chrome_security_state_model_client.h"
6 6
7 #include <openssl/ssl.h> 7 #include <openssl/ssl.h>
8 8
9 #include <vector> 9 #include <vector>
10 10
(...skipping 373 matching lines...) Expand 10 before | Expand all | Expand 10 after
384 ssl.sct_statuses.end()); 384 ssl.sct_statuses.end());
385 state->displayed_mixed_content = 385 state->displayed_mixed_content =
386 !!(ssl.content_status & content::SSLStatus::DISPLAYED_INSECURE_CONTENT); 386 !!(ssl.content_status & content::SSLStatus::DISPLAYED_INSECURE_CONTENT);
387 state->ran_mixed_content = 387 state->ran_mixed_content =
388 !!(ssl.content_status & content::SSLStatus::RAN_INSECURE_CONTENT); 388 !!(ssl.content_status & content::SSLStatus::RAN_INSECURE_CONTENT);
389 state->displayed_content_with_cert_errors = 389 state->displayed_content_with_cert_errors =
390 !!(ssl.content_status & 390 !!(ssl.content_status &
391 content::SSLStatus::DISPLAYED_CONTENT_WITH_CERT_ERRORS); 391 content::SSLStatus::DISPLAYED_CONTENT_WITH_CERT_ERRORS);
392 state->ran_content_with_cert_errors = 392 state->ran_content_with_cert_errors =
393 !!(ssl.content_status & content::SSLStatus::RAN_CONTENT_WITH_CERT_ERRORS); 393 !!(ssl.content_status & content::SSLStatus::RAN_CONTENT_WITH_CERT_ERRORS);
394 state->displayed_nonsecure_password_field =
395 !!(ssl.content_status &
396 content::SSLStatus::DISPLAYED_NONSECURE_PASSWORD_FIELD);
397 state->displayed_nonsecure_credit_card_field =
398 !!(ssl.content_status &
399 content::SSLStatus::DISPLAYED_NONSECURE_CREDIT_CARD_FIELD);
394 400
395 CheckSafeBrowsingStatus(entry, web_contents_, state); 401 CheckSafeBrowsingStatus(entry, web_contents_, state);
396 } 402 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698