summaryrefslogtreecommitdiffstats
path: root/chrome/browser/chromeos/drive/file_cache.h
diff options
context:
space:
mode:
authorhashimoto@chromium.org <hashimoto@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-10-22 03:23:15 +0000
committerhashimoto@chromium.org <hashimoto@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-10-22 03:23:15 +0000
commitf2731d1673c3388479292ae08ec38b802f1cfa6b (patch)
tree55242d1c05dc63f65909c957ed26db005ad8e200 /chrome/browser/chromeos/drive/file_cache.h
parent6cd1f4deef9ccb0f674b58b347b5369dcc60d54d (diff)
downloadchromium_src-f2731d1673c3388479292ae08ec38b802f1cfa6b.zip
chromium_src-f2731d1673c3388479292ae08ec38b802f1cfa6b.tar.gz
chromium_src-f2731d1673c3388479292ae08ec38b802f1cfa6b.tar.bz2
drive: Make FileCache::RenameCacheFilesToNewFormat responsible to canonicalize file name
Move file name canonicalization responsibility from CanonicalizeIDs to RenameCacheFilesToNewFormat CanonicalizeIDs will be deleted soon when cache entry ID canonicalization code moves to ResourceMetadataStorage. BUG=309597 TEST=unit_tests R=kinaba@chromium.org Review URL: https://codereview.chromium.org/32333002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@230029 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/chromeos/drive/file_cache.h')
-rw-r--r--chrome/browser/chromeos/drive/file_cache.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/chromeos/drive/file_cache.h b/chrome/browser/chromeos/drive/file_cache.h
index 06b61ae..ba6aa1a 100644
--- a/chrome/browser/chromeos/drive/file_cache.h
+++ b/chrome/browser/chromeos/drive/file_cache.h
@@ -193,9 +193,9 @@ class FileCache {
// bytes, while keeping kMinFreeSpace bytes on the disk.
bool HasEnoughSpaceFor(int64 num_bytes, const base::FilePath& path);
- // Renames cache files from old "id.md5" format to the new format.
+ // Renames cache files from old "prefix:id.md5" format to the new format.
// TODO(hashimoto): Remove this method at some point.
- void RenameCacheFilesToNewFormat();
+ bool RenameCacheFilesToNewFormat();
const base::FilePath cache_file_directory_;