diff options
author | hashimoto@chromium.org <hashimoto@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-10-24 04:00:05 +0000 |
---|---|---|
committer | hashimoto@chromium.org <hashimoto@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-10-24 04:00:05 +0000 |
commit | 12a024ec8e3cd10aeea96ceff1fac94e72b63733 (patch) | |
tree | ecada9861d0c672a3fcfd9595a77ff7f40c6e1f4 /chrome/browser/chromeos/drive/file_cache.h | |
parent | 9843f19b5da27c85fb8a9ce22521256de6ec7da1 (diff) | |
download | chromium_src-12a024ec8e3cd10aeea96ceff1fac94e72b63733.zip chromium_src-12a024ec8e3cd10aeea96ceff1fac94e72b63733.tar.gz chromium_src-12a024ec8e3cd10aeea96ceff1fac94e72b63733.tar.bz2 |
drive: Add ResourceMetadataStorage::UpgradeOldDB
UpgradeOldDB is responsible to DB version backward compatibility.
When encountering old version DB, it erases all entries except cache entries, canonicalizes IDs and add resource-ID-to-local-ID mapping entries.
Fix ResourceMetadata::AddEntry and ResourceMetadataStorage::CheckValidity to allow resource-ID-to-local-ID entry without corresponding ResourceEntry.
Remove FileCache::CanonicalizeIDs.
Add a new UMA histogram "Drive.InputDBVersion"
BUG=309597
TEST=unit_tests
R=asvitkine@chromium.org, kinaba@chromium.org
Review URL: https://codereview.chromium.org/33533003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@230625 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/chromeos/drive/file_cache.h')
-rw-r--r-- | chrome/browser/chromeos/drive/file_cache.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/chrome/browser/chromeos/drive/file_cache.h b/chrome/browser/chromeos/drive/file_cache.h index ba6aa1a..e6a752a 100644 --- a/chrome/browser/chromeos/drive/file_cache.h +++ b/chrome/browser/chromeos/drive/file_cache.h @@ -15,7 +15,6 @@ #include "base/memory/weak_ptr.h" #include "chrome/browser/chromeos/drive/file_errors.h" #include "chrome/browser/chromeos/drive/resource_metadata_storage.h" -#include "chrome/browser/drive/drive_service_interface.h" namespace base { class SequencedTaskRunner; @@ -156,10 +155,6 @@ class FileCache { // Must be called on the UI thread. void Destroy(); - // Converts entry IDs and cache file names to the desired format. - // TODO(hashimoto): Remove this method at some point. - bool CanonicalizeIDs(const ResourceIdCanonicalizer& id_canonicalizer); - private: friend class FileCacheTest; friend class FileCacheTestOnUIThread; |