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: de016e52bd170d2d4f2344f9bf92d50478b649e0@63454 0039d316-1c4b-4281-b951-d872f2087c98

bright-sparks/chromium-spacewalk,pozdnyakov/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,mogoweb/chromium-crosswalk,chuan9/chromium-crosswalk,robclark/chromium,PeterWangIntel/chromium-crosswalk,jaruba/chromium.src,dednal/chromium.src,krieger-od/nwjs_chromium.src,Chilledheart/chromium,axinging/chromium-crosswalk,ChromiumWebApps/chromium,Chilledheart/chromium,dednal/chromium.src,jaruba/chromium.src,nacl-webkit/chrome_deps,zcbenz/cefode-chromium,bright-sparks/chromium-spacewalk,Pluto-tv/chromium-crosswalk,hujiajie/pa-chromium,rogerwang/chromium,hgl888/chromium-crosswalk,dednal/chromium.src,Jonekee/chromium.src,krieger-od/nwjs_chromium.src,anirudhSK/chromium,ltilve/chromium,M4sse/chromium.src,junmin-zhu/chromium-rivertrail,keishi/chromium,PeterWangIntel/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,Just-D/chromium-1,anirudhSK/chromium,patrickm/chromium.src,Just-D/chromium-1,markYoungH/chromium.src,littlstar/chromium.src,dushu1203/chromium.src,Fireblend/chromium-crosswalk,dushu1203/chromium.src,pozdnyakov/chromium-crosswalk,hujiajie/pa-chromium,ondra-novak/chromium.src,PeterWangIntel/chromium-crosswalk,keishi/chromium,timopulkkinen/BubbleFish,anirudhSK/chromium,krieger-od/nwjs_chromium.src,junmin-zhu/chromium-rivertrail,markYoungH/chromium.src,keishi/chromium,patrickm/chromium.src,jaruba/chromium.src,bright-sparks/chromium-spacewalk,junmin-zhu/chromium-rivertrail,dednal/chromium.src,anirudhSK/chromium,hgl888/chromium-crosswalk-efl,dednal/chromium.src,nacl-webkit/chrome_deps,hujiajie/pa-chromium,dushu1203/chromium.src,axinging/chromium-crosswalk,bright-sparks/chromium-spacewalk,hgl888/chromium-crosswalk,rogerwang/chromium,keishi/chromium,dednal/chromium.src,dushu1203/chromium.src,TheTypoMaster/chromium-crosswalk,ChromiumWebApps/chromium,axinging/chromium-crosswalk,Jonekee/chromium.src,littlstar/chromium.src,ltilve/chromium,ChromiumWebApps/chromium,crosswalk-project/chromium-crosswalk-efl,anirudhSK/chromium,Fireblend/chromium-crosswalk,markYoungH/chromium.src,ltilve/chromium,dushu1203/chromium.src,dednal/chromium.src,junmin-zhu/chromium-rivertrail,patrickm/chromium.src,mohamed--abdel-maksoud/chromium.src,Just-D/chromium-1,mohamed--abdel-maksoud/chromium.src,anirudhSK/chromium,mohamed--abdel-maksoud/chromium.src,mogoweb/chromium-crosswalk,rogerwang/chromium,fujunwei/chromium-crosswalk,Jonekee/chromium.src,Fireblend/chromium-crosswalk,robclark/chromium,patrickm/chromium.src,Pluto-tv/chromium-crosswalk,Jonekee/chromium.src,hgl888/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,littlstar/chromium.src,ltilve/chromium,ChromiumWebApps/chromium,rogerwang/chromium,axinging/chromium-crosswalk,pozdnyakov/chromium-crosswalk,jaruba/chromium.src,PeterWangIntel/chromium-crosswalk,patrickm/chromium.src,anirudhSK/chromium,bright-sparks/chromium-spacewalk,jaruba/chromium.src,ChromiumWebApps/chromium,pozdnyakov/chromium-crosswalk,hujiajie/pa-chromium,patrickm/chromium.src,mogoweb/chromium-crosswalk,zcbenz/cefode-chromium,anirudhSK/chromium,mogoweb/chromium-crosswalk,timopulkkinen/BubbleFish,zcbenz/cefode-chromium,hgl888/chromium-crosswalk-efl,krieger-od/nwjs_chromium.src,PeterWangIntel/chromium-crosswalk,mogoweb/chromium-crosswalk,Fireblend/chromium-crosswalk,robclark/chromium,rogerwang/chromium,bright-sparks/chromium-spacewalk,Fireblend/chromium-crosswalk,nacl-webkit/chrome_deps,zcbenz/cefode-chromium,dednal/chromium.src,junmin-zhu/chromium-rivertrail,mohamed--abdel-maksoud/chromium.src,fujunwei/chromium-crosswalk,hgl888/chromium-crosswalk,nacl-webkit/chrome_deps,M4sse/chromium.src,axinging/chromium-crosswalk,timopulkkinen/BubbleFish,patrickm/chromium.src,M4sse/chromium.src,Fireblend/chromium-crosswalk,zcbenz/cefode-chromium,pozdnyakov/chromium-crosswalk,markYoungH/chromium.src,TheTypoMaster/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,rogerwang/chromium,Fireblend/chromium-crosswalk,Chilledheart/chromium,crosswalk-project/chromium-crosswalk-efl,Chilledheart/chromium,pozdnyakov/chromium-crosswalk,chuan9/chromium-crosswalk,ltilve/chromium,Fireblend/chromium-crosswalk,M4sse/chromium.src,mohamed--abdel-maksoud/chromium.src,markYoungH/chromium.src,ltilve/chromium,mohamed--abdel-maksoud/chromium.src,crosswalk-project/chromium-crosswalk-efl,pozdnyakov/chromium-crosswalk,Jonekee/chromium.src,robclark/chromium,Just-D/chromium-1,keishi/chromium,Jonekee/chromium.src,patrickm/chromium.src,ondra-novak/chromium.src,TheTypoMaster/chromium-crosswalk,zcbenz/cefode-chromium,crosswalk-project/chromium-crosswalk-efl,nacl-webkit/chrome_deps,anirudhSK/chromium,M4sse/chromium.src,junmin-zhu/chromium-rivertrail,axinging/chromium-crosswalk,fujunwei/chromium-crosswalk,pozdnyakov/chromium-crosswalk,hgl888/chromium-crosswalk,axinging/chromium-crosswalk,ondra-novak/chromium.src,chuan9/chromium-crosswalk,Pluto-tv/chromium-crosswalk,Jonekee/chromium.src,crosswalk-project/chromium-crosswalk-efl,keishi/chromium,ChromiumWebApps/chromium,patrickm/chromium.src,hujiajie/pa-chromium,chuan9/chromium-crosswalk,littlstar/chromium.src,zcbenz/cefode-chromium,ltilve/chromium,Just-D/chromium-1,jaruba/chromium.src,timopulkkinen/BubbleFish,dushu1203/chromium.src,nacl-webkit/chrome_deps,mogoweb/chromium-crosswalk,ltilve/chromium,timopulkkinen/BubbleFish,chuan9/chromium-crosswalk,chuan9/chromium-crosswalk,Just-D/chromium-1,krieger-od/nwjs_chromium.src,pozdnyakov/chromium-crosswalk,markYoungH/chromium.src,Jonekee/chromium.src,timopulkkinen/BubbleFish,Chilledheart/chromium,anirudhSK/chromium,dednal/chromium.src,fujunwei/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,hujiajie/pa-chromium,keishi/chromium,PeterWangIntel/chromium-crosswalk,zcbenz/cefode-chromium,Chilledheart/chromium,fujunwei/chromium-crosswalk,Jonekee/chromium.src,rogerwang/chromium,Just-D/chromium-1,hgl888/chromium-crosswalk-efl,krieger-od/nwjs_chromium.src,hgl888/chromium-crosswalk-efl,markYoungH/chromium.src,littlstar/chromium.src,hujiajie/pa-chromium,junmin-zhu/chromium-rivertrail,fujunwei/chromium-crosswalk,axinging/chromium-crosswalk,krieger-od/nwjs_chromium.src,fujunwei/chromium-crosswalk,robclark/chromium,markYoungH/chromium.src,robclark/chromium,krieger-od/nwjs_chromium.src,timopulkkinen/BubbleFish,chuan9/chromium-crosswalk,dushu1203/chromium.src,hgl888/chromium-crosswalk,hujiajie/pa-chromium,dednal/chromium.src,Fireblend/chromium-crosswalk,zcbenz/cefode-chromium,hujiajie/pa-chromium,anirudhSK/chromium,dushu1203/chromium.src,Chilledheart/chromium,dushu1203/chromium.src,jaruba/chromium.src,jaruba/chromium.src,mogoweb/chromium-crosswalk,axinging/chromium-crosswalk,krieger-od/nwjs_chromium.src,bright-sparks/chromium-spacewalk,Chilledheart/chromium,timopulkkinen/BubbleFish,TheTypoMaster/chromium-crosswalk,nacl-webkit/chrome_deps,keishi/chromium,Pluto-tv/chromium-crosswalk,nacl-webkit/chrome_deps,hgl888/chromium-crosswalk-efl,hgl888/chromium-crosswalk,rogerwang/chromium,ChromiumWebApps/chromium,Just-D/chromium-1,M4sse/chromium.src,rogerwang/chromium,markYoungH/chromium.src,nacl-webkit/chrome_deps,M4sse/chromium.src,mogoweb/chromium-crosswalk,jaruba/chromium.src,zcbenz/cefode-chromium,ondra-novak/chromium.src,timopulkkinen/BubbleFish,M4sse/chromium.src,crosswalk-project/chromium-crosswalk-efl,ltilve/chromium,hgl888/chromium-crosswalk,krieger-od/nwjs_chromium.src,hgl888/chromium-crosswalk-efl,ondra-novak/chromium.src,pozdnyakov/chromium-crosswalk,ChromiumWebApps/chromium,hgl888/chromium-crosswalk-efl,chuan9/chromium-crosswalk,robclark/chromium,PeterWangIntel/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,mohamed--abdel-maksoud/chromium.src,littlstar/chromium.src,littlstar/chromium.src,mogoweb/chromium-crosswalk,hgl888/chromium-crosswalk-efl,fujunwei/chromium-crosswalk,ChromiumWebApps/chromium,markYoungH/chromium.src,Pluto-tv/chromium-crosswalk,fujunwei/chromium-crosswalk,ChromiumWebApps/chromium,littlstar/chromium.src,junmin-zhu/chromium-rivertrail,timopulkkinen/BubbleFish,zcbenz/cefode-chromium,Chilledheart/chromium,hgl888/chromium-crosswalk-efl,Just-D/chromium-1,Pluto-tv/chromium-crosswalk,ChromiumWebApps/chromium,M4sse/chromium.src,ondra-novak/chromium.src,rogerwang/chromium,Pluto-tv/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,Pluto-tv/chromium-crosswalk,markYoungH/chromium.src,nacl-webkit/chrome_deps,robclark/chromium,ondra-novak/chromium.src,crosswalk-project/chromium-crosswalk-efl,jaruba/chromium.src,junmin-zhu/chromium-rivertrail,pozdnyakov/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,dednal/chromium.src,Jonekee/chromium.src,timopulkkinen/BubbleFish,junmin-zhu/chromium-rivertrail,hujiajie/pa-chromium,mogoweb/chromium-crosswalk,robclark/chromium,M4sse/chromium.src,hgl888/chromium-crosswalk-efl,crosswalk-project/chromium-crosswalk-efl,krieger-od/nwjs_chromium.src,TheTypoMaster/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,junmin-zhu/chromium-rivertrail,bright-sparks/chromium-spacewalk,Jonekee/chromium.src,bright-sparks/chromium-spacewalk,dushu1203/chromium.src,M4sse/chromium.src,ondra-novak/chromium.src,ChromiumWebApps/chromium,mohamed--abdel-maksoud/chromium.src,Pluto-tv/chromium-crosswalk,nacl-webkit/chrome_deps,keishi/chromium,jaruba/chromium.src,ondra-novak/chromium.src,keishi/chromium,dushu1203/chromium.src,axinging/chromium-crosswalk,hgl888/chromium-crosswalk,chuan9/chromium-crosswalk,axinging/chromium-crosswalk,keishi/chromium,robclark/chromium,crosswalk-project/chromium-crosswalk-efl,anirudhSK/chromium,hujiajie/pa-chromium