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

Unified Diff: chrome/browser/cocoa/toolbar_controller.mm

Issue 2475002: Initial cut at scaffolding for mac sidetabs. No visible changes to browser wi... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years, 7 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/toolbar_controller.mm
===================================================================
--- chrome/browser/cocoa/toolbar_controller.mm (revision 48662)
+++ chrome/browser/cocoa/toolbar_controller.mm (working copy)
@@ -154,9 +154,10 @@
commands:(CommandUpdater*)commands
profile:(Profile*)profile
browser:(Browser*)browser
- resizeDelegate:(id<ViewResizer>)resizeDelegate {
- DCHECK(model && commands && profile);
- if ((self = [super initWithNibName:@"Toolbar"
+ resizeDelegate:(id<ViewResizer>)resizeDelegate
+ nibFileNamed:(NSString*)nibName {
+ DCHECK(model && commands && profile && [nibName length]);
+ if ((self = [super initWithNibName:nibName
bundle:mac_util::MainAppBundle()])) {
toolbarModel_ = model;
commands_ = commands;
@@ -177,6 +178,22 @@
return self;
}
+- (id)initWithModel:(ToolbarModel*)model
+ commands:(CommandUpdater*)commands
+ profile:(Profile*)profile
+ browser:(Browser*)browser
+ resizeDelegate:(id<ViewResizer>)resizeDelegate {
+ if ((self = [self initWithModel:model
+ commands:commands
+ profile:profile
+ browser:browser
+ resizeDelegate:resizeDelegate
+ nibFileNamed:@"Toolbar"])) {
+ }
+ return self;
+}
+
+
- (void)dealloc {
// Make sure any code in the base class which assumes [self view] is
// the "parent" view continues to work.

Powered by Google App Engine
This is Rietveld 408576698