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

Unified Diff: chrome/browser/app_controller_mac.mm

Issue 2325313002: Opt out of macOS Sierra automatic window tabbing (Closed)
Patch Set: Created 4 years, 3 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
« base/mac/sdk_forward_declarations.h ('K') | « base/mac/sdk_forward_declarations.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/app_controller_mac.mm
diff --git a/chrome/browser/app_controller_mac.mm b/chrome/browser/app_controller_mac.mm
index f371b8bc0f65cd33997b33844cb0fff735e4260d..5c6d4e518d14375638e277344e384548d8961ced 100644
--- a/chrome/browser/app_controller_mac.mm
+++ b/chrome/browser/app_controller_mac.mm
@@ -408,6 +408,10 @@ class AppControllerProfileObserver : public ProfileAttributesStorage::Observer {
- (void)applicationWillFinishLaunching:(NSNotification*)notification {
MacStartupProfiler::GetInstance()->Profile(
MacStartupProfiler::WILL_FINISH_LAUNCHING);
+
+ if ([NSWindow respondsToSelector:@selector(allowsAutomaticWindowTabbing)]) {
Nico 2016/09/12 14:13:58 is checking for `setAllowsAutomaticWindowTabbing:`
Sidney San Martín 2016/09/12 15:07:25 You are technically correct — the best kind of cor
+ NSWindow.allowsAutomaticWindowTabbing = NO;
+ }
}
- (void)applicationWillHide:(NSNotification*)notification {
« base/mac/sdk_forward_declarations.h ('K') | « base/mac/sdk_forward_declarations.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698