| Index: chrome/browser/chromeos/file_manager/open_util.cc
|
| diff --git a/chrome/browser/chromeos/file_manager/open_util.cc b/chrome/browser/chromeos/file_manager/open_util.cc
|
| index b16ffc84c2dbef912884c76ef6ea8c997d01666c..3378da0d7fda2745528e1a33c71821346b9e67ca 100644
|
| --- a/chrome/browser/chromeos/file_manager/open_util.cc
|
| +++ b/chrome/browser/chromeos/file_manager/open_util.cc
|
| @@ -21,7 +21,6 @@
|
| #include "chrome/browser/ui/simple_message_box.h"
|
| #include "content/public/browser/browser_thread.h"
|
| #include "content/public/browser/user_metrics.h"
|
| -#include "google_apis/drive/task_util.h"
|
| #include "grit/generated_resources.h"
|
| #include "ui/base/l10n/l10n_util.h"
|
| #include "webkit/browser/fileapi/file_system_backend.h"
|
| @@ -144,40 +143,6 @@ void ContinueOpenItem(Profile* profile,
|
| }
|
| }
|
|
|
| -// Used to implement CheckIfDirectoryExists().
|
| -void CheckIfDirectoryExistsOnIOThread(
|
| - scoped_refptr<fileapi::FileSystemContext> file_system_context,
|
| - const GURL& url,
|
| - const fileapi::FileSystemOperationRunner::StatusCallback& callback) {
|
| - DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
|
| -
|
| - fileapi::FileSystemURL file_system_url = file_system_context->CrackURL(url);
|
| - file_system_context->operation_runner()->DirectoryExists(
|
| - file_system_url, callback);
|
| -}
|
| -
|
| -// Checks if a directory exists at |url|.
|
| -void CheckIfDirectoryExists(
|
| - scoped_refptr<fileapi::FileSystemContext> file_system_context,
|
| - const GURL& url,
|
| - const fileapi::FileSystemOperationRunner::StatusCallback& callback) {
|
| - DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
|
| -
|
| - // Check the existence of directory using file system API implementation on
|
| - // behalf of the file manager app. We need to grant access beforehand.
|
| - fileapi::ExternalFileSystemBackend* backend =
|
| - file_system_context->external_backend();
|
| - DCHECK(backend);
|
| - backend->GrantFullAccessToExtension(kFileManagerAppId);
|
| -
|
| - BrowserThread::PostTask(
|
| - BrowserThread::IO, FROM_HERE,
|
| - base::Bind(&CheckIfDirectoryExistsOnIOThread,
|
| - file_system_context,
|
| - url,
|
| - google_apis::CreateRelayCallback(callback)));
|
| -}
|
| -
|
| // Converts the |given_path| passed from external callers to the form that the
|
| // file manager can correctly handle. It first migrates old Drive/Download
|
| // folder path to the new formats, and then converts path to filesystem URL.
|
|
|