| Index: chrome/browser/chromeos/drive/fileapi/fileapi_worker.cc
|
| diff --git a/chrome/browser/chromeos/drive/fileapi/fileapi_worker.cc b/chrome/browser/chromeos/drive/fileapi/fileapi_worker.cc
|
| index e20ac0cafe1aff3a92319a60add039be4b642c71..7cc9ebcf3cbe7d3239a43d090ae6cc16b71d00ea 100644
|
| --- a/chrome/browser/chromeos/drive/fileapi/fileapi_worker.cc
|
| +++ b/chrome/browser/chromeos/drive/fileapi/fileapi_worker.cc
|
| @@ -14,6 +14,7 @@
|
| #include "chrome/browser/chromeos/drive/file_system_util.h"
|
| #include "chrome/browser/chromeos/drive/resource_entry_conversion.h"
|
| #include "content/public/browser/browser_thread.h"
|
| +#include "webkit/browser/fileapi/file_system_url.h"
|
| #include "webkit/common/fileapi/directory_entry.h"
|
|
|
| using content::BrowserThread;
|
| @@ -197,6 +198,13 @@ void OpenFileAfterFileSystemOpenFile(int file_flags,
|
|
|
| } // namespace
|
|
|
| +FileSystemInterface* GetFileSystemFromUrl(const fileapi::FileSystemURL& url) {
|
| + DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
|
| +
|
| + Profile* profile = util::ExtractProfileFromPath(url.path());
|
| + return profile ? util::GetFileSystemByProfile(profile) : NULL;
|
| +}
|
| +
|
| void RunFileSystemCallback(
|
| const FileSystemGetter& file_system_getter,
|
| const base::Callback<void(FileSystemInterface*)>& callback,
|
|
|