Chromium Code Reviews| Index: chrome/browser/chromeos/drive/fileapi/file_system_backend_delegate.cc |
| diff --git a/chrome/browser/chromeos/drive/fileapi/file_system_backend_delegate.cc b/chrome/browser/chromeos/drive/fileapi/file_system_backend_delegate.cc |
| index f153791fc2997e7662b45b0c276dca2bf91508c2..f46a01dc70393caa55da6fb9b1ebc394eb1f2ab9 100644 |
| --- a/chrome/browser/chromeos/drive/fileapi/file_system_backend_delegate.cc |
| +++ b/chrome/browser/chromeos/drive/fileapi/file_system_backend_delegate.cc |
| @@ -56,6 +56,11 @@ void GetRedirectURLForContentsOnUIThread( |
| return; |
| } |
| const base::FilePath file_path = util::ExtractDrivePathFromFileSystemUrl(url); |
| + if (file_path.empty()) { |
| + callback.Run(GURL()); |
|
kinaba
2014/09/24 02:11:13
It looks you have to post to IO thread (as the !fi
hirono
2014/09/24 03:40:17
Thank you for catching it. Done.
|
| + return; |
| + } |
| + |
| file_system->GetResourceEntry( |
| file_path, |
| base::Bind(&GetRedirectURLForContentsOnUIThreadWithResourceEntry, |