mac: Tentative fix for Yosemite open file crash.
commit192b9d9cfe388a6cfb76b9aea56070da1d878a81
authorerikchen <erikchen@chromium.org>
Thu, 19 Feb 2015 02:11:23 +0000 (18 18:11 -0800)
committerCommit bot <commit-bot@chromium.org>
Thu, 19 Feb 2015 02:11:44 +0000 (19 02:11 +0000)
tree70e7862037144a4d32fe4c03d902884600e180b7
parent38c214270e19d5f95f10dc0173a49311f03966a0
mac: Tentative fix for Yosemite open file crash.

There's a bug in AppKit that causes Chrome to crash when users attempt to save
or open a file. The code path that causes the crash is only hit by applications
linked against OSX 10.7 SDK (or earlier). This CL registers a default value for
the preference NSViewKeepLayersAround, which prevents this code path from being
hit. The functional implications of changing the preference
NSViewKeepLayersAround are minimal.

BUG=428977

Review URL: https://codereview.chromium.org/941453002

Cr-Commit-Position: refs/heads/master@{#316968}
chrome/browser/chrome_browser_main_mac.mm