Chromium Code Reviews| Index: chrome/browser/ui/views/location_bar/location_bar_view.cc |
| diff --git a/chrome/browser/ui/views/location_bar/location_bar_view.cc b/chrome/browser/ui/views/location_bar/location_bar_view.cc |
| index aba7b08857ada9090683767ae52d9740ebe016f3..40311e634c4822420414babaa4b65c02311eca99 100644 |
| --- a/chrome/browser/ui/views/location_bar/location_bar_view.cc |
| +++ b/chrome/browser/ui/views/location_bar/location_bar_view.cc |
| @@ -311,8 +311,12 @@ void LocationBarView::Init(views::View* popup_parent_view) { |
| star_view_->SetVisible(true); |
| } |
| if (extensions::switch_utils::IsActionBoxEnabled() && browser_) { |
| - action_box_button_view_ = new ActionBoxButtonView(browser_); |
| + gfx::Point menu_offset( |
|
Peter Kasting
2012/09/14 22:50:53
Nit: I would probably inline this into the next st
yefimt
2012/09/14 23:00:56
I always felt that N one line expressions are more
|
| + (mode_ == NORMAL) ? kNormalHorizontalEdgeThickness : 0, |
| + kVerticalEdgeThickness); |
| + action_box_button_view_ = new ActionBoxButtonView(browser_, menu_offset); |
| AddChildView(action_box_button_view_); |
| + |
| if (star_view_) |
| star_view_->SetVisible(false); |
| } |