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.
5 #include "content/app/mac/mac_init.h"
7 #include <Cocoa/Cocoa.h>
9 #include "base/mac/mac_util.h"
13 void InitializeMac() {
14 [[NSUserDefaults standardUserDefaults] registerDefaults:@{
15 @"NSTreatUnknownArgumentsAsOpen": @"NO",
16 // CoreAnimation has poor performance and CoreAnimation and
17 // non-CoreAnimation exhibit window flickering when layers are not hosted
18 // in the window server, which is the default when not not using the
20 // TODO: Remove this when we build with the 10.9 SDK.
21 @"NSWindowHostsLayersInWindowServer": @(base::mac::IsOSMavericksOrLater())
25 } // namespace content