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 00e8a410cfd9a23d064be54c8dc03cb07cfa223a..606114142c3a1a6376862ef2644c5c64eb6349e3 100644 |
--- a/chrome/browser/ui/views/location_bar/location_bar_view.cc |
+++ b/chrome/browser/ui/views/location_bar/location_bar_view.cc |
@@ -241,8 +241,7 @@ void LocationBarView::Init(views::View* popup_parent_view) { |
} |
if (extensions::switch_utils::IsActionBoxEnabled()) { |
- action_box_button_view_ = new ActionBoxButtonView( |
- ExtensionSystem::Get(profile_)->extension_service()); |
+ action_box_button_view_ = new ActionBoxButtonView(profile_, delegate_); |
AddChildView(action_box_button_view_); |
} else if (browser_defaults::bookmarks_enabled && (mode_ == NORMAL)) { |
// Note: condition above means that the star and ChromeToMobile icons are |
@@ -448,6 +447,8 @@ views::View* LocationBarView::GetPageActionView(ExtensionAction *page_action) { |
void LocationBarView::SetStarToggled(bool on) { |
if (star_view_) |
star_view_->SetToggled(on); |
+ if (action_box_button_view_) |
+ action_box_button_view_->SetBookmarkState(on); |
} |
void LocationBarView::ShowStarBubble(const GURL& url, bool newly_bookmarked) { |