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

Unified Diff: chrome/browser/ui/cocoa/web_intent_sheet_controller.mm

Issue 10413044: Use existing model for initial layout, if we can. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix review issues. Created 8 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
« no previous file with comments | « chrome/browser/ui/cocoa/web_intent_picker_cocoa.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/web_intent_sheet_controller.mm
diff --git a/chrome/browser/ui/cocoa/web_intent_sheet_controller.mm b/chrome/browser/ui/cocoa/web_intent_sheet_controller.mm
index d016793432d74b4e13378306be7ced8e71750fbe..de596409144ba0dc3a76149f2fbcd13c70eb81f1 100644
--- a/chrome/browser/ui/cocoa/web_intent_sheet_controller.mm
+++ b/chrome/browser/ui/cocoa/web_intent_sheet_controller.mm
@@ -459,8 +459,10 @@ NSButton* CreateHyperlinkButton(NSString* title, const NSRect& frame) {
if ((self = [super initWithWindow:window.get()])) {
picker_ = picker;
+ if (picker)
+ model_ = picker->model();
intentButtons_.reset([[NSMutableArray alloc] init]);
- [self performLayoutWithModel:NULL];
+ [self performLayoutWithModel:model_];
[[self window] makeFirstResponder:self];
}
return self;
« no previous file with comments | « chrome/browser/ui/cocoa/web_intent_picker_cocoa.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698