| Index: chrome/android/java/src/org/chromium/chrome/browser/omnibox/LocationBarLayout.java
|
| diff --git a/chrome/android/java/src/org/chromium/chrome/browser/omnibox/LocationBarLayout.java b/chrome/android/java/src/org/chromium/chrome/browser/omnibox/LocationBarLayout.java
|
| index 2f57619263a2b229818329f7e059974919a56087..678ac61056b63460cc57ca3f0dbf23c09a49adec 100644
|
| --- a/chrome/android/java/src/org/chromium/chrome/browser/omnibox/LocationBarLayout.java
|
| +++ b/chrome/android/java/src/org/chromium/chrome/browser/omnibox/LocationBarLayout.java
|
| @@ -1262,7 +1262,7 @@
|
| mSecurityIconType = securityLevel;
|
|
|
| updateSecurityButton(!(securityLevel == ConnectionSecurityLevel.NONE && isSmallDevice));
|
| - // Since we emphasize the scheme of the URL based on the security type, we need to
|
| + // Since we emphasize the schema of the URL based on the security type, we need to
|
| // refresh the emphasis.
|
| mUrlBar.deEmphasizeUrl();
|
| emphasizeUrl();
|
| @@ -1275,8 +1275,14 @@
|
|
|
| @Override
|
| public boolean shouldEmphasizeHttpsScheme() {
|
| - ToolbarDataProvider provider = getToolbarDataProvider();
|
| - if (provider.isUsingBrandColor() || provider.isIncognito()) return false;
|
| + int securityLevel = getSecurityLevel();
|
| + if (securityLevel == ConnectionSecurityLevel.SECURITY_ERROR
|
| + || securityLevel == ConnectionSecurityLevel.SECURITY_WARNING
|
| + || securityLevel == ConnectionSecurityLevel.SECURITY_POLICY_WARNING) {
|
| + return true;
|
| + }
|
| + if (getToolbarDataProvider().isUsingBrandColor()) return false;
|
| + if (getToolbarDataProvider().isIncognito()) return false;
|
| return true;
|
| }
|
|
|
|
|