Chromium Code Reviews| Index: chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.mm |
| diff --git a/chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.mm b/chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.mm |
| index c3d9761ebda73bb1ef82ce2db7529fac70529098..2f33f711b3194ba7a41596bec184b9fc8b266354 100644 |
| --- a/chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.mm |
| +++ b/chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.mm |
| @@ -331,7 +331,8 @@ void LocationBarViewMac::SetStarred(bool starred) { |
| if (star_decoration_->starred() == starred) |
| return; |
| - star_decoration_->SetStarred(starred); |
| + star_decoration_->SetStarred(starred, |
| + [[field_ window] inIncognitoModeWithSystemTheme]); |
|
Avi (use Gerrit)
2016/03/01 19:59:07
hasDarkTheme?
shrike
2016/03/01 20:30:14
Yes, for location bar.
|
| UpdateBookmarkStarVisibility(); |
| OnDecorationsChanged(); |
| } |
| @@ -551,6 +552,11 @@ void LocationBarViewMac::OnChanged() { |
| location_icon_decoration_->SetImage(image); |
| ev_bubble_decoration_->SetImage(image); |
| Layout(); |
| + |
| + // Make sure we're displaying the correct icon color for a dark location bar. |
| + if ([[field_ window] inIncognitoModeWithSystemTheme]) { |
|
Avi (use Gerrit)
2016/03/01 19:59:07
hasDarkTheme?
shrike
2016/03/01 20:30:14
Yes.
|
| + star_decoration_->SetStarred(star_decoration_->starred(), true); |
| + } |
| } |
| void LocationBarViewMac::OnSetFocus() { |