Index: chrome/browser/ui/cocoa/location_bar/plus_decoration.mm |
diff --git a/chrome/browser/ui/cocoa/location_bar/plus_decoration.mm b/chrome/browser/ui/cocoa/location_bar/plus_decoration.mm |
index 7cf6ebcbe6c809f682b69a174840fc98ea8a1d3a..e4dc14c85d008bc9ea8ea3bb7df1f8a3b04a2211 100644 |
--- a/chrome/browser/ui/cocoa/location_bar/plus_decoration.mm |
+++ b/chrome/browser/ui/cocoa/location_bar/plus_decoration.mm |
@@ -4,7 +4,6 @@ |
#import "chrome/browser/ui/cocoa/location_bar/plus_decoration.h" |
-#include "chrome/browser/command_updater.h" |
#include "chrome/browser/extensions/extension_system.h" |
msw
2012/08/30 00:41:43
remove unnecessary include.
Cait (Slow)
2012/08/30 01:33:29
Done.
|
#include "chrome/browser/ui/browser.h" |
#include "chrome/browser/ui/browser_commands.h" |
@@ -24,10 +23,8 @@ const CGFloat kAnchorPointYOffset = 4.0; |
const CGFloat kAnchorPointFrameHeight = 23.0; |
} // namespace |
-PlusDecoration::PlusDecoration(LocationBarViewMac* owner, |
- CommandUpdater* command_updater, Browser* browser) |
+PlusDecoration::PlusDecoration(LocationBarViewMac* owner, Browser* browser) |
msw
2012/08/30 00:41:43
nit: one arg per line when the initializer list do
Cait (Slow)
2012/08/30 01:33:29
Done.
|
: owner_(owner), |
- command_updater_(command_updater), |
browser_(browser) { |
SetVisible(true); |
@@ -45,9 +42,7 @@ bool PlusDecoration::AcceptsMousePress() { |
} |
bool PlusDecoration::OnMousePressed(NSRect frame) { |
- ExtensionService* extension_service = extensions::ExtensionSystem::Get( |
- browser_->profile())->extension_service(); |
- ActionBoxMenuModel menu_model(browser_, extension_service); |
+ ActionBoxMenuModel menu_model(browser_); |
// Controller for the menu attached to the plus decoration. |
scoped_nsobject<MenuController> menu_controller( |