Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1817)

Unified Diff: chrome/browser/chromeos/gdata/gdata_file_system.cc

Issue 10182009: gdata: Remove GDataFileSystem::GetFileFromCacheByPath() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: better solution Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/gdata/gdata_file_system.cc
diff --git a/chrome/browser/chromeos/gdata/gdata_file_system.cc b/chrome/browser/chromeos/gdata/gdata_file_system.cc
index 91978fcaf1c0974d8624a49eac786d5349361764..fc0abd1b7718e50667aedc3bd63d22bc8b92211a 100644
--- a/chrome/browser/chromeos/gdata/gdata_file_system.cc
+++ b/chrome/browser/chromeos/gdata/gdata_file_system.cc
@@ -2056,41 +2056,6 @@ GDataEntry* GDataFileSystem::GetGDataEntryByPath(
return find_delegate.entry();
}
-void GDataFileSystem::GetFileFromCacheByPath(
- const FilePath& gdata_file_path,
- const GetFileFromCacheCallback& callback) {
- std::string resource_id;
- std::string md5;
-
- { // Lock to use GetGDataEntryByPath and returned pointer, but need to
- // release before GetFileFromCacheByResourceIdAndMd5.
- base::AutoLock lock(lock_);
- GDataEntry* entry = GetGDataEntryByPath(gdata_file_path);
-
- if (entry && entry->AsGDataFile()) {
- GDataFile* file = entry->AsGDataFile();
- resource_id = file->resource_id();
- md5 = file->file_md5();
- } else {
- // Invoke |callback| with error.
- if (!callback.is_null()) {
- base::MessageLoopProxy::current()->PostTask(
- FROM_HERE,
- base::Bind(callback,
- base::PLATFORM_FILE_ERROR_NOT_FOUND,
- std::string(),
- std::string(),
- gdata_file_path,
- FilePath()));
- }
- return;
- }
- }
-
- GetFileFromCacheByResourceIdAndMd5Internal(
- resource_id, md5, gdata_file_path, callback);
-}
-
void GDataFileSystem::GetCacheState(const std::string& resource_id,
const std::string& md5,
const GetCacheStateCallback& callback) {
« no previous file with comments | « chrome/browser/chromeos/gdata/gdata_file_system.h ('k') | chrome/browser/chromeos/gdata/gdata_file_system_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698