Index: webkit/dom_storage/dom_storage_area.cc |
=================================================================== |
--- webkit/dom_storage/dom_storage_area.cc (revision 127574) |
+++ webkit/dom_storage/dom_storage_area.cc (working copy) |
@@ -16,20 +16,6 @@ |
namespace dom_storage { |
-// static |
-const FilePath::CharType DomStorageArea::kDatabaseFileExtension[] = |
- FILE_PATH_LITERAL(".localstorage"); |
- |
-// static |
-FilePath DomStorageArea::DatabaseFileNameFromOrigin(const GURL& origin) { |
- std::string filename = fileapi::GetOriginIdentifierFromURL(origin); |
- // There is no FilePath.AppendExtension() method, so start with just the |
- // extension as the filename, and then InsertBeforeExtension the desired |
- // name. |
- return FilePath().Append(kDatabaseFileExtension). |
- InsertBeforeExtensionASCII(filename); |
-} |
- |
DomStorageArea::DomStorageArea( |
int64 namespace_id, const GURL& origin, |
const FilePath& directory, DomStorageTaskRunner* task_runner) |
@@ -178,4 +164,11 @@ |
commit_in_flight_ = false; |
} |
+// static |
+FilePath DomStorageArea::DatabaseFileNameFromOrigin(const GURL& origin) { |
+ std::string filename = fileapi::GetOriginIdentifierFromURL(origin) |
+ + ".localstorage"; |
+ return FilePath().AppendASCII(filename); |
+} |
+ |
} // namespace dom_storage |