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

Side by Side Diff: content/app/mac/mac_init.mm

Issue 2112553009: mac: Crash on uncaught Objective-C exceptions routed to NSApplication (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Self-review Created 4 years, 5 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 unified diff | Download patch
« no previous file with comments | « chrome/browser/chrome_browser_main_mac.mm ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/app/mac/mac_init.h" 5 #include "content/app/mac/mac_init.h"
6 6
7 #include <Cocoa/Cocoa.h> 7 #import <Cocoa/Cocoa.h>
8 8
9 #include "base/mac/mac_util.h" 9 #include "base/mac/mac_util.h"
10 10
11 namespace content { 11 namespace content {
12 12
13 void InitializeMac() { 13 void InitializeMac() {
14 [[NSUserDefaults standardUserDefaults] registerDefaults:@{ 14 [[NSUserDefaults standardUserDefaults] registerDefaults:@{
15 // Exceptions routed to -[NSApplication reportException:] should crash
16 // immediately, as opposed being swallowed or presenting UI that gives the
17 // user a choice in the matter.
18 @"NSApplicationCrashOnExceptions": @YES,
19
20 // Prevent Cocoa from turning command-line arguments into -[NSApplication
21 // application:openFile:], because they are handled directly. @"NO" looks
22 // like a mistake, but the value really is supposed to be a string.
15 @"NSTreatUnknownArgumentsAsOpen": @"NO", 23 @"NSTreatUnknownArgumentsAsOpen": @"NO",
24
16 // CoreAnimation has poor performance and CoreAnimation and 25 // CoreAnimation has poor performance and CoreAnimation and
17 // non-CoreAnimation exhibit window flickering when layers are not hosted 26 // non-CoreAnimation exhibit window flickering when layers are not hosted
18 // in the window server, which is the default when not not using the 27 // in the window server, which is the default when not not using the
19 // 10.9 SDK. 28 // 10.9 SDK.
20 // TODO: Remove this when we build with the 10.9 SDK. 29 // TODO: Remove this when we build with the 10.9 SDK.
21 @"NSWindowHostsLayersInWindowServer": @(base::mac::IsOSMavericksOrLater()) 30 @"NSWindowHostsLayersInWindowServer": @(base::mac::IsOSMavericksOrLater())
22 }]; 31 }];
23 } 32 }
24 33
25 } // namespace content 34 } // namespace content
OLDNEW
« no previous file with comments | « chrome/browser/chrome_browser_main_mac.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698