| OLD | NEW |
| (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 | |
| OLD | NEW |