summaryrefslogtreecommitdiffstats
path: root/webkit/fileapi/file_system_context.cc
diff options
context:
space:
mode:
authorkinuko@chromium.org <kinuko@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-16 07:24:48 +0000
committerkinuko@chromium.org <kinuko@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-16 07:24:48 +0000
commitb4bbe9ad1ec0320b73e0914a6fc24ac514b30844 (patch)
tree44fe4361486ef35c5e538228a4762a2cf764a602 /webkit/fileapi/file_system_context.cc
parentcf1d3ee8cef29833d62a149b721dd31ff7cd17f2 (diff)
downloadchromium_src-b4bbe9ad1ec0320b73e0914a6fc24ac514b30844.zip
chromium_src-b4bbe9ad1ec0320b73e0914a6fc24ac514b30844.tar.gz
chromium_src-b4bbe9ad1ec0320b73e0914a6fc24ac514b30844.tar.bz2
Make more methods of FileSystemPathManager static and portable.
Changes: - Renamed StorageIdentifier to OriginIdentifier to better reflect its meaning. - Changed a few methods to take string origin identifier but not origin URL as its parameter, since in some cases it seems to be more convenient just to use the identifier string (which can be easily extracted from the path) than to call WebKit method to convert back the identifier to GURL. BUG=none TEST=FileSystemPathManagerTest.* Review URL: http://codereview.chromium.org/6483017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75077 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/fileapi/file_system_context.cc')
-rw-r--r--webkit/fileapi/file_system_context.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/webkit/fileapi/file_system_context.cc b/webkit/fileapi/file_system_context.cc
index c0546d8..5007fff 100644
--- a/webkit/fileapi/file_system_context.cc
+++ b/webkit/fileapi/file_system_context.cc
@@ -37,10 +37,10 @@ void FileSystemContext::DeleteDataForOriginOnFileThread(
DCHECK(path_manager_.get());
DCHECK(file_message_loop_->BelongsToCurrentThread());
- std::string storage_identifier =
- FileSystemPathManager::GetStorageIdentifierFromURL(origin_url);
+ std::string origin_identifier =
+ FileSystemPathManager::GetOriginIdentifierFromURL(origin_url);
FilePath path_for_origin = path_manager_->base_path().AppendASCII(
- storage_identifier);
+ origin_identifier);
file_util::Delete(path_for_origin, true /* recursive */);
}