WorkerWebKitClientImpl::mimeTypeForExtension should not use WorkerThread::current
WorkerWebKitClientImpl::mimeTypeForExtension should not use WorkerThread::current

Currently FileEntry.file() or FileEntrySync.file() calls File::create() on the (WebKit's) worker thread but on chromium we use WorkerThread::current() (which assumes WebKit's main thread in the worker process) to process the mime request initiated by File::create().

File::create() needs to be called on the main thread (this is related to webkit.org/b/47700) or WorkerWebKitClientImpl::mimeTypeForExtension should not use WorkerThread::current() to process the request.

BUG=60081
TEST=no crash in fast/filesystem/workers/file-from-file-entry.html

Review URL: http://codereview.chromium.org/4012002

git-svn-id: http://src.chromium.org/svn/trunk/src@63454 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

Former-commit-id: ff02053796b08c919851724f8ca06187d98a2a5e
meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser