| Index: chrome/browser/ssl/connection_security_helper.cc
|
| diff --git a/chrome/browser/ssl/connection_security_helper.cc b/chrome/browser/ssl/connection_security_helper.cc
|
| index 63455835bb614efb709850c2695e0c1a78d84b03..e55d1aca569cb60120471822d4cb328916b0c809 100644
|
| --- a/chrome/browser/ssl/connection_security_helper.cc
|
| +++ b/chrome/browser/ssl/connection_security_helper.cc
|
| @@ -128,3 +128,24 @@ ConnectionSecurityHelper::GetSecurityLevelForWebContents(
|
| return NONE;
|
| }
|
| }
|
| +
|
| +content::SecurityStyle ConnectionSecurityHelper::GetSecurityStyleForWebContents(
|
| + const content::WebContents* web_contents) {
|
| + SecurityLevel security_level = GetSecurityLevelForWebContents(web_contents);
|
| +
|
| + switch (security_level) {
|
| + case NONE:
|
| + return content::SECURITY_STYLE_UNAUTHENTICATED;
|
| + case EV_SECURE:
|
| + case SECURE:
|
| + return content::SECURITY_STYLE_AUTHENTICATED;
|
| + case SECURITY_WARNING:
|
| + case SECURITY_POLICY_WARNING:
|
| + return content::SECURITY_STYLE_WARNING;
|
| + case SECURITY_ERROR:
|
| + return content::SECURITY_STYLE_AUTHENTICATION_BROKEN;
|
| + }
|
| +
|
| + NOTREACHED();
|
| + return content::SECURITY_STYLE_UNKNOWN;
|
| +}
|
|
|