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

Unified Diff: chrome/browser/chromeos/gdata/gdata_files.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_files.cc
diff --git a/chrome/browser/chromeos/gdata/gdata_files.cc b/chrome/browser/chromeos/gdata/gdata_files.cc
index a8bdd7fad40eb4be1edaebc731a6bf82c36e39c2..050b5544f05641b283d63d544eec532be85d278e 100644
--- a/chrome/browser/chromeos/gdata/gdata_files.cc
+++ b/chrome/browser/chromeos/gdata/gdata_files.cc
@@ -27,6 +27,13 @@ std::string ExtractResourceId(const GURL& url) {
} // namespace
+void ReadOnlyFindEntryCallback(GDataEntry** out,
+ base::PlatformFileError error,
+ GDataEntry* entry) {
+ if (error == base::PLATFORM_FILE_OK)
+ *out = entry;
+}
+
// GDataEntry class.
GDataEntry::GDataEntry(GDataDirectory* parent, GDataRootDirectory* root)

Powered by Google App Engine
This is Rietveld 408576698