Clamp posix file names to NAME_MAX.
Note: This is one out of two patches that together will fix sub-frame exporting during 'save page as'. The other one is here: https://bugs.webkit.org/show_bug.cgi?id=53897

Patch from Magnus Danielsson <[email protected]>
Original CL: http://codereview.chromium.org/6286140/

BUG=25303
TEST=Open www.cnn.com and click 'save page as'. Check the log to make sure no files failed to save due to too long file names.
Review URL: http://codereview.chromium.org/6474018

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@74684 0039d316-1c4b-4281-b951-d872f2087c98
4 files changed