mac: Fix a gmail/calendar UI deadlock.
NSSavePanel is implemented incorrectly, and if an NSAlert is presented while
the NSSavePanel has its "New folder" modal dialog open, the UI will deadlock.
This CL dispatches the presentation of the NSAlert to the top of the CFRunLoop
via '-performSelector:withObject:afterDelay:', which fixes this instantiation
of the bug. (The selector will not be performed until after the "New folder"
modal dialog is dismissed.)
BUG=375785
Review URL: https://codereview.chromium.org/
345643004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@280476 0039d316-1c4b-4281-b951-d872f2087c98