| Index: content/worker/worker_webkitplatformsupport_impl.cc
|
| diff --git a/content/worker/worker_webkitplatformsupport_impl.cc b/content/worker/worker_webkitplatformsupport_impl.cc
|
| index f3dee3650a51d4307d7b5ae074ac99117f715440..7816243af65c6e752fc7006c09dd23399c37ab82 100644
|
| --- a/content/worker/worker_webkitplatformsupport_impl.cc
|
| +++ b/content/worker/worker_webkitplatformsupport_impl.cc
|
| @@ -62,12 +62,26 @@ bool WorkerWebKitPlatformSupportImpl::FileUtilities::getFileInfo(
|
| WebFileInfo& web_file_info) {
|
| base::PlatformFileInfo file_info;
|
| base::PlatformFileError status;
|
| +#if defined(OS_ANDROID)
|
| + GURL url(path.utf8());
|
| + if (url.SchemeIsContent()) {
|
| + if (!thread_safe_sender_.get() ||
|
| + !thread_safe_sender_->Send(new FileUtilitiesMsg_GetContentUrlInfo(
|
| + url, &file_info, &status)) ||
|
| + status != base::PLATFORM_FILE_OK) {
|
| + return false;
|
| + }
|
| + } else {
|
| +#endif
|
| if (!thread_safe_sender_.get() ||
|
| !thread_safe_sender_->Send(new FileUtilitiesMsg_GetFileInfo(
|
| base::FilePath::FromUTF16Unsafe(path), &file_info, &status)) ||
|
| status != base::PLATFORM_FILE_OK) {
|
| return false;
|
| }
|
| +#if defined(OS_ANDROID)
|
| + }
|
| +#endif
|
| webkit_glue::PlatformFileInfoToWebFileInfo(file_info, &web_file_info);
|
| web_file_info.platformPath = path;
|
| return true;
|
|
|