summaryrefslogtreecommitdiffstats
path: root/content/browser/fileapi/browser_file_system_helper.cc
diff options
context:
space:
mode:
authornhiroki@chromium.org <nhiroki@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-07-25 12:21:13 +0000
committernhiroki@chromium.org <nhiroki@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-07-25 12:21:13 +0000
commit534173b54f299d0b1005bfde2893e52b64431f81 (patch)
treef5cb4cbf99f9ae2279882a7ac614037a4d1b4ff9 /content/browser/fileapi/browser_file_system_helper.cc
parent89d70520cfde07fff4bcce7ee779881840a9e56f (diff)
downloadchromium_src-534173b54f299d0b1005bfde2893e52b64431f81.zip
chromium_src-534173b54f299d0b1005bfde2893e52b64431f81.tar.gz
chromium_src-534173b54f299d0b1005bfde2893e52b64431f81.tar.bz2
FileAPI: Clean up around FileSystemBackend
Outdated comments and variable names still remain around FileSystemBackend. This change cleans them up. BUG=241701 TEST=none R=kinuko@chromium.org Review URL: https://codereview.chromium.org/20277003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@213616 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/fileapi/browser_file_system_helper.cc')
-rw-r--r--content/browser/fileapi/browser_file_system_helper.cc12
1 files changed, 5 insertions, 7 deletions
diff --git a/content/browser/fileapi/browser_file_system_helper.cc b/content/browser/fileapi/browser_file_system_helper.cc
index e8e81ce..a03417d 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;
}