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

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

Issue 2763883002: Revert of Move some basic early process init into Service Manager (Closed)
Patch Set: Created 3 years, 9 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 | « content/app/mac/mac_init.h ('k') | content/browser/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "content/app/mac/mac_init.h"
6
7 #import <Cocoa/Cocoa.h>
8
9 namespace content {
10
11 void InitializeMac() {
12 [[NSUserDefaults standardUserDefaults] registerDefaults:@{
13 // Exceptions routed to -[NSApplication reportException:] should crash
14 // immediately, as opposed being swallowed or presenting UI that gives the
15 // user a choice in the matter.
16 @"NSApplicationCrashOnExceptions": @YES,
17
18 // Prevent Cocoa from turning command-line arguments into -[NSApplication
19 // application:openFile:], because they are handled directly. @"NO" looks
20 // like a mistake, but the value really is supposed to be a string.
21 @"NSTreatUnknownArgumentsAsOpen": @"NO",
22 }];
23 }
24
25 } // namespace content
OLDNEW
« no previous file with comments | « content/app/mac/mac_init.h ('k') | content/browser/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698