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

Unified Diff: chrome/browser/cocoa/extensions/browser_action_button.mm

Issue 595017: [Mac] Use the ExtensionToolbarModel for ordering of the Browser Actions. Prep... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Remove redundant profile object. Created 10 years, 10 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/cocoa/extensions/browser_action_button.mm
===================================================================
--- chrome/browser/cocoa/extensions/browser_action_button.mm (revision 38554)
+++ chrome/browser/cocoa/extensions/browser_action_button.mm (working copy)
@@ -92,9 +92,9 @@
}
- (id)initWithExtension:(Extension*)extension
- tabId:(int)tabId
- xOffset:(int)xOffset {
- NSRect frame = NSMakeRect(xOffset,
+ profile:(Profile*)profile
+ tabId:(int)tabId {
+ NSRect frame = NSMakeRect(0.0,
kBrowserActionOriginYOffset,
kBrowserActionWidth,
kBrowserActionHeight);
@@ -114,7 +114,7 @@
[self setShowsBorderOnlyWhileMouseInside:YES];
[self setMenu:[[[ExtensionActionContextMenu alloc]
- initWithExtension:extension] autorelease]];
+ initWithExtension:extension profile:profile] autorelease]];
tabId_ = tabId;
extension_ = extension;

Powered by Google App Engine
This is Rietveld 408576698