Index: chrome/android/java/src/org/chromium/chrome/browser/toolbar/CustomTabToolbar.java |
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/toolbar/CustomTabToolbar.java b/chrome/android/java/src/org/chromium/chrome/browser/toolbar/CustomTabToolbar.java |
index 49b02da41f1fe27ed841a4a81e63f8a93ed7da23..df87a09926dabf3895d2d38413d570e6cbe6a871 100644 |
--- a/chrome/android/java/src/org/chromium/chrome/browser/toolbar/CustomTabToolbar.java |
+++ b/chrome/android/java/src/org/chromium/chrome/browser/toolbar/CustomTabToolbar.java |
@@ -367,14 +367,9 @@ |
if (securityLevel == ConnectionSecurityLevel.NONE) { |
mAnimDelegate.hideSecurityButton(); |
} else { |
- int id = LocationBarLayout.getSecurityIconResource( |
- securityLevel, !shouldEmphasizeHttpsScheme()); |
// ImageView#setImageResource is no-op if given resource is the current one. |
- if (id == 0) { |
- mSecurityButton.setImageDrawable(null); |
- } else { |
- mSecurityButton.setImageResource(id); |
- } |
+ mSecurityButton.setImageResource(LocationBarLayout.getSecurityIconResource( |
+ securityLevel, !shouldEmphasizeHttpsScheme())); |
mAnimDelegate.showSecurityButton(); |
} |
mUrlBar.emphasizeUrl(); |