summaryrefslogtreecommitdiffstats
path: root/chrome/browser/browser_theme_provider.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/browser_theme_provider.cc')
-rw-r--r--chrome/browser/browser_theme_provider.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/browser_theme_provider.cc b/chrome/browser/browser_theme_provider.cc
index be81770..aceedf1 100644
--- a/chrome/browser/browser_theme_provider.cc
+++ b/chrome/browser/browser_theme_provider.cc
@@ -1112,9 +1112,9 @@ void BrowserThemeProvider::SetColorData(DictionaryValue* colors_value) {
colors_[WideToUTF8(*iter)] =
SkColorSetARGB(static_cast<int>(alpha * 255), r, g, b);
} else if (color_list->GetInteger(3, &alpha_int) &&
- (alpha_int >= 0 && alpha_int <= 255)) {
+ (alpha_int == 0 || alpha_int == 1)) {
colors_[WideToUTF8(*iter)] =
- SkColorSetARGB(alpha_int, r, g, b);
+ SkColorSetARGB(alpha_int ? 255 : 0, r, g, b);
}
} else {
colors_[WideToUTF8(*iter)] = SkColorSetRGB(r, g, b);