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

Unified Diff: content/browser/fileapi/browser_file_system_helper.cc

Issue 20277003: FileAPI: Clean up around FileSystemBackend (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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
« no previous file with comments | « no previous file | webkit/browser/fileapi/copy_or_move_operation_delegate_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/fileapi/browser_file_system_helper.cc
diff --git a/content/browser/fileapi/browser_file_system_helper.cc b/content/browser/fileapi/browser_file_system_helper.cc
index e8e81ce12362aa51871e5bc12a3da4d6705d8200..a03417d146fb13eb3d9bcd7a21a67e19297030e9 100644
--- a/content/browser/fileapi/browser_file_system_helper.cc
+++ b/content/browser/fileapi/browser_file_system_helper.cc
@@ -63,12 +63,12 @@ scoped_refptr<fileapi::FileSystemContext> CreateFileSystemContext(
BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO).get(),
file_task_runner.get()));
- // Setting up additional mount point providers.
- ScopedVector<fileapi::FileSystemBackend> additional_providers;
+ // Setting up additional filesystem backends.
+ ScopedVector<fileapi::FileSystemBackend> additional_backends;
GetContentClient()->browser()->GetAdditionalFileSystemBackends(
browser_context,
profile_path,
- &additional_providers);
+ &additional_backends);
scoped_refptr<fileapi::FileSystemContext> file_system_context =
new fileapi::FileSystemContext(
@@ -76,7 +76,7 @@ scoped_refptr<fileapi::FileSystemContext> CreateFileSystemContext(
BrowserContext::GetMountPoints(browser_context),
browser_context->GetSpecialStoragePolicy(),
quota_manager_proxy,
- additional_providers.Pass(),
+ additional_backends.Pass(),
profile_path,
CreateBrowserFileSystemOptions(is_incognito));
@@ -104,9 +104,7 @@ bool CheckFileSystemPermissionsForProcess(
return false;
}
- fileapi::FileSystemBackend* mount_point_provider =
- context->GetFileSystemBackend(url.type());
- if (!mount_point_provider) {
+ if (!context->GetFileSystemBackend(url.type())) {
*error = base::PLATFORM_FILE_ERROR_INVALID_URL;
return false;
}
« no previous file with comments | « no previous file | webkit/browser/fileapi/copy_or_move_operation_delegate_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698