Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1517)

Unified Diff: chrome/browser/chromeos/drive/file_system_util.cc

Issue 304373004: Implement IsNonNativeLocalPathDirectory for supporting non-local non-Drive directory access in apps. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added comment. Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/drive/file_system_util.cc
diff --git a/chrome/browser/chromeos/drive/file_system_util.cc b/chrome/browser/chromeos/drive/file_system_util.cc
index 5cba03ba7c2dfce64029474087a2b2f2f624ab91..3946c0c7657b361f6e5f1df02e71d8f9f2473871 100644
--- a/chrome/browser/chromeos/drive/file_system_util.cc
+++ b/chrome/browser/chromeos/drive/file_system_util.cc
@@ -104,15 +104,6 @@ DriveIntegrationService* GetIntegrationServiceByProfile(Profile* profile) {
return service;
}
-void CheckDirectoryExistsAfterGetResourceEntry(
- const FileOperationCallback& callback,
- FileError error,
- scoped_ptr<ResourceEntry> entry) {
- if (error == FILE_ERROR_OK && !entry->file_info().is_directory())
- error = FILE_ERROR_NOT_A_DIRECTORY;
- callback.Run(error);
-}
-
} // namespace
const base::FilePath& GetDriveGrandRootPath() {
@@ -348,20 +339,6 @@ void EnsureDirectoryExists(Profile* profile,
}
}
-void CheckDirectoryExists(Profile* profile,
- const base::FilePath& directory,
- const FileOperationCallback& callback) {
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
- DCHECK(!callback.is_null());
-
- FileSystemInterface* file_system = GetFileSystemByProfile(profile);
- DCHECK(file_system);
-
- file_system->GetResourceEntry(
- ExtractDrivePath(directory),
- base::Bind(&CheckDirectoryExistsAfterGetResourceEntry, callback));
-}
-
void EmptyFileOperationCallback(FileError error) {
}
« no previous file with comments | « chrome/browser/chromeos/drive/file_system_util.h ('k') | chrome/browser/chromeos/file_manager/fileapi_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698