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

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

Issue 5301006: [Mac] Prevent constrained windows (sheets) from opening while instant preview... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 1 month 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/cocoa/browser_window_controller.mm ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/cocoa/constrained_window_mac.mm
===================================================================
--- chrome/browser/cocoa/constrained_window_mac.mm (revision 67708)
+++ chrome/browser/cocoa/constrained_window_mac.mm (working copy)
@@ -69,7 +69,10 @@
NSWindowController* controller = [browserWindow windowController];
if (controller != nil) {
DCHECK([controller isKindOfClass:[BrowserWindowController class]]);
- Realize(static_cast<BrowserWindowController*>(controller));
+ BrowserWindowController* browser_controller =
+ static_cast<BrowserWindowController*>(controller);
+ if ([browser_controller canAttachConstrainedWindow])
+ Realize(browser_controller);
}
}
« no previous file with comments | « chrome/browser/cocoa/browser_window_controller.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698