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

Unified Diff: content/browser/devtools/protocol/security_handler.cc

Issue 2400673003: Remove SSLStatus::security_style member and content::SecurityStyle (Closed)
Patch Set: more curly braces Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/devtools/protocol/security_handler.cc
diff --git a/content/browser/devtools/protocol/security_handler.cc b/content/browser/devtools/protocol/security_handler.cc
index 1b92427c9b3042c8dec2b3c52a14bebf7d600fd0..d3efa82257fbed81b3698de5f86068e161e2816d 100644
--- a/content/browser/devtools/protocol/security_handler.cc
+++ b/content/browser/devtools/protocol/security_handler.cc
@@ -23,17 +23,17 @@ typedef DevToolsProtocolClient::Response Response;
namespace {
std::string SecurityStyleToProtocolSecurityState(
- SecurityStyle security_style) {
+ blink::WebSecurityStyle security_style) {
switch (security_style) {
- case SECURITY_STYLE_UNKNOWN:
+ case blink::WebSecurityStyleUnknown:
return kSecurityStateUnknown;
- case SECURITY_STYLE_UNAUTHENTICATED:
+ case blink::WebSecurityStyleUnauthenticated:
return kSecurityStateNeutral;
- case SECURITY_STYLE_AUTHENTICATION_BROKEN:
+ case blink::WebSecurityStyleAuthenticationBroken:
return kSecurityStateInsecure;
- case SECURITY_STYLE_WARNING:
+ case blink::WebSecurityStyleWarning:
return kSecurityStateWarning;
- case SECURITY_STYLE_AUTHENTICATED:
+ case blink::WebSecurityStyleAuthenticated:
return kSecurityStateSecure;
default:
NOTREACHED();
@@ -78,7 +78,7 @@ void SecurityHandler::AttachToRenderFrameHost() {
// Send an initial SecurityStyleChanged event.
DCHECK(enabled_);
SecurityStyleExplanations security_style_explanations;
- SecurityStyle security_style =
+ blink::WebSecurityStyle security_style =
web_contents->GetDelegate()->GetSecurityStyle(
web_contents, &security_style_explanations);
SecurityStyleChanged(security_style, security_style_explanations);
@@ -91,7 +91,7 @@ void SecurityHandler::SetRenderFrameHost(RenderFrameHost* host) {
}
void SecurityHandler::SecurityStyleChanged(
- SecurityStyle security_style,
+ blink::WebSecurityStyle security_style,
const SecurityStyleExplanations& security_style_explanations) {
DCHECK(enabled_);
« no previous file with comments | « content/browser/devtools/protocol/security_handler.h ('k') | content/browser/frame_host/navigation_entry_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698