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

Unified Diff: chrome/browser/chromeos/file_manager/filesystem_api_util.cc

Issue 442383002: Move storage-related files from webkit/ to new top-level directory storage/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 4 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/file_manager/filesystem_api_util.cc
diff --git a/chrome/browser/chromeos/file_manager/filesystem_api_util.cc b/chrome/browser/chromeos/file_manager/filesystem_api_util.cc
index 34bfb97fa2b47ea14d30ca4b70ddb3d979f69868..be01bd929d37f93f1e7f2120292fc54611268188 100644
--- a/chrome/browser/chromeos/file_manager/filesystem_api_util.cc
+++ b/chrome/browser/chromeos/file_manager/filesystem_api_util.cc
@@ -20,7 +20,7 @@
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/storage_partition.h"
#include "google_apis/drive/task_util.h"
-#include "webkit/browser/fileapi/file_system_context.h"
+#include "storage/browser/fileapi/file_system_context.h"
namespace file_manager {
namespace util {
@@ -68,9 +68,9 @@ void BoolCallbackAsFileErrorCallback(
// Part of PrepareFileOnIOThread. It tries to create a new file if the given
// |url| is not already inhabited.
void PrepareFileAfterCheckExistOnIOThread(
- scoped_refptr<fileapi::FileSystemContext> file_system_context,
- const fileapi::FileSystemURL& url,
- const fileapi::FileSystemOperation::StatusCallback& callback,
+ scoped_refptr<storage::FileSystemContext> file_system_context,
+ const storage::FileSystemURL& url,
+ const storage::FileSystemOperation::StatusCallback& callback,
base::File::Error error) {
DCHECK_CURRENTLY_ON(content::BrowserThread::IO);
@@ -91,8 +91,8 @@ void PrepareFileAfterCheckExistOnIOThread(
// Checks whether a file exists at the given |url|, and try creating it if it
// is not already there.
void PrepareFileOnIOThread(
- scoped_refptr<fileapi::FileSystemContext> file_system_context,
- const fileapi::FileSystemURL& url,
+ scoped_refptr<storage::FileSystemContext> file_system_context,
+ const storage::FileSystemURL& url,
const base::Callback<void(bool)>& callback) {
DCHECK_CURRENTLY_ON(content::BrowserThread::IO);
@@ -116,15 +116,15 @@ bool IsUnderNonNativeLocalPath(Profile* profile,
return false;
}
- fileapi::FileSystemURL filesystem_url =
- GetFileSystemContextForExtensionId(profile,
- kFileManagerAppId)->CrackURL(url);
+ storage::FileSystemURL filesystem_url =
+ GetFileSystemContextForExtensionId(profile, kFileManagerAppId)
+ ->CrackURL(url);
if (!filesystem_url.is_valid())
return false;
switch (filesystem_url.type()) {
- case fileapi::kFileSystemTypeNativeLocal:
- case fileapi::kFileSystemTypeRestrictedNativeLocal:
+ case storage::kFileSystemTypeNativeLocal:
+ case storage::kFileSystemTypeRestrictedNativeLocal:
return false;
default:
// The path indeed corresponds to a mount point not associated with a
@@ -224,7 +224,7 @@ void PrepareNonNativeLocalFileForWritableApp(
return;
}
- fileapi::FileSystemContext* const context =
+ storage::FileSystemContext* const context =
GetFileSystemContextForExtensionId(profile, kFileManagerAppId);
DCHECK(context);
« no previous file with comments | « chrome/browser/chromeos/file_manager/filesystem_api_util.h ('k') | chrome/browser/chromeos/file_manager/open_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698