Chromium Code Reviews| Index: chrome/browser/ui/views/toolbar/toolbar_action_view.cc |
| diff --git a/chrome/browser/ui/views/toolbar/toolbar_action_view.cc b/chrome/browser/ui/views/toolbar/toolbar_action_view.cc |
| index 13198fb2a94c50b90ee6b74e2670a52b60461db8..237c76e208bb153125aea12b554556679a3d26f6 100644 |
| --- a/chrome/browser/ui/views/toolbar/toolbar_action_view.cc |
| +++ b/chrome/browser/ui/views/toolbar/toolbar_action_view.cc |
| @@ -158,12 +158,8 @@ void ToolbarActionView::UpdateState() { |
| view_controller_->GetIcon(web_contents, |
| GetPreferredSize()).AsImageSkia()); |
| - if (!icon.isNull()) { |
| - gfx::ImageSkia bg = *ResourceBundle::GetSharedInstance().GetImageSkiaNamed( |
|
Evan Stade
2016/01/13 18:35:41
this wasn't doing anything (except enlarging the i
Devlin
2016/01/13 19:58:12
Hmm... my guess is that maybe we *needed* to enlar
Evan Stade
2016/01/14 01:59:19
my personal guess is that the background asset use
|
| - IDR_BROWSER_ACTION); |
| - SetImage(views::Button::STATE_NORMAL, |
| - gfx::ImageSkiaOperations::CreateSuperimposedImage(bg, icon)); |
| - } |
| + if (!icon.isNull()) |
| + SetImage(views::Button::STATE_NORMAL, icon); |
| SetTooltipText(view_controller_->GetTooltip(web_contents)); |
| SetAccessibleName(view_controller_->GetAccessibleName(web_contents)); |