Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1063)

Unified Diff: chrome/browser/ui/views/location_bar/location_bar_view.cc

Issue 10533086: Action box menu (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 0a5408f773d82ef7f2eb05268c79af69a0277146..ca589f419e42d0be0bffe937c0caa703815b45ef 100644
--- a/chrome/browser/ui/views/location_bar/location_bar_view.cc
+++ b/chrome/browser/ui/views/location_bar/location_bar_view.cc
@@ -236,8 +236,7 @@ void LocationBarView::Init() {
}
if (extensions::switch_utils::IsActionBoxEnabled()) {
- action_box_button_view_ = new ActionBoxButtonView(
- ExtensionSystem::Get(profile_)->extension_service());
+ action_box_button_view_ = new ActionBoxButtonView(profile_);
AddChildView(action_box_button_view_);
} else if (browser_defaults::bookmarks_enabled && (mode_ == NORMAL)) {
// Note: condition above means that the star and ChromeToMobile icons are
@@ -444,6 +443,8 @@ views::View* LocationBarView::GetPageActionView(
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) {

Powered by Google App Engine
This is Rietveld 408576698