| Index: content/app/mac/mac_init.mm
|
| diff --git a/content/app/mac/mac_init.mm b/content/app/mac/mac_init.mm
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..5bcd537999d31170024a4fd087bd92a9f4ca465a
|
| --- /dev/null
|
| +++ b/content/app/mac/mac_init.mm
|
| @@ -0,0 +1,25 @@
|
| +// Copyright 2015 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include "content/app/mac/mac_init.h"
|
| +
|
| +#import <Cocoa/Cocoa.h>
|
| +
|
| +namespace content {
|
| +
|
| +void InitializeMac() {
|
| + [[NSUserDefaults standardUserDefaults] registerDefaults:@{
|
| + // Exceptions routed to -[NSApplication reportException:] should crash
|
| + // immediately, as opposed being swallowed or presenting UI that gives the
|
| + // user a choice in the matter.
|
| + @"NSApplicationCrashOnExceptions": @YES,
|
| +
|
| + // Prevent Cocoa from turning command-line arguments into -[NSApplication
|
| + // application:openFile:], because they are handled directly. @"NO" looks
|
| + // like a mistake, but the value really is supposed to be a string.
|
| + @"NSTreatUnknownArgumentsAsOpen": @"NO",
|
| + }];
|
| +}
|
| +
|
| +} // namespace content
|
|
|