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

Side by Side Diff: services/service_manager/embedder/mac_init.mm

Issue 2613653003: Move some basic early process init into Service Manager (Closed)
Patch Set: fix mac shutdown order 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 | « services/service_manager/embedder/mac_init.h ('k') | services/service_manager/embedder/main.h » ('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 2017 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 "services/service_manager/embedder/mac_init.h"
6
7 #import <Cocoa/Cocoa.h>
8
9 namespace service_manager {
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 service_manager
OLDNEW
« no previous file with comments | « services/service_manager/embedder/mac_init.h ('k') | services/service_manager/embedder/main.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698