Do not accidentally change the behavior of did-change-theme-color

This commit is contained in:
Cheng Zhao 2017-11-13 16:20:54 +09:00
parent 7e0593950c
commit cee1c459c7

View file

@ -770,7 +770,7 @@ void WebContents::DidChangeThemeColor(SkColor theme_color) {
if (theme_color != SK_ColorTRANSPARENT) {
Emit("did-change-theme-color", atom::ToRGBHex(theme_color));
} else {
Emit("did-change-theme-color", atom::ToRGBHex(SK_ColorTRANSPARENT));
Emit("did-change-theme-color", nullptr);
}
}