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

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

Issue 10538071: gdata: Convert FindEntryByResourceIdSync() to asynchronous. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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_unittest.cc
diff --git a/chrome/browser/chromeos/gdata/gdata_file_system_unittest.cc b/chrome/browser/chromeos/gdata/gdata_file_system_unittest.cc
index e73ece4fa4930ea2e7908c5f63ea01b710977e75..b6969bea22cbc94971ba27bdbe3f657bbf00705b 100644
--- a/chrome/browser/chromeos/gdata/gdata_file_system_unittest.cc
+++ b/chrome/browser/chromeos/gdata/gdata_file_system_unittest.cc
@@ -328,10 +328,8 @@ class GDataFileSystemTest : public testing::Test {
}
GDataEntry* FindEntryByResourceId(const std::string& resource_id) {
- GDataEntry* entry = NULL;
- file_system_->FindEntryByResourceIdSync(
- resource_id, base::Bind(&ReadOnlyFindEntryCallback, &entry));
- return entry;
+ GDataEntry* entry = file_system_->root_->GetEntryByResourceId(resource_id);
+ return entry ? entry->AsGDataFile() : NULL;
}
// Gets the entry info for |file_path| and compares the contents against

Powered by Google App Engine
This is Rietveld 408576698