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

Unified Diff: chrome/browser/chromeos/gdata/gdata_files.h

Issue 10831076: gdata: Get rid of callback from GDataDirectoryService::FindEntryByPath() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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.h
diff --git a/chrome/browser/chromeos/gdata/gdata_files.h b/chrome/browser/chromeos/gdata/gdata_files.h
index 78ef14ccd78cd5e082dcf8c7ca841fb079d3bf0d..dac845dd76088c07621a649767bb60c432cd11a6 100644
--- a/chrome/browser/chromeos/gdata/gdata_files.h
+++ b/chrome/browser/chromeos/gdata/gdata_files.h
@@ -358,9 +358,9 @@ class GDataDirectoryService {
// Removes the entry from resource map.
void RemoveEntryFromResourceMap(GDataEntry* entry);
- // Searches for |file_path| triggering callback.
- void FindEntryByPath(const FilePath& file_path,
- const FindEntryCallback& callback);
+ // Searches for |file_path| synchronously.
+ // TODO(satorux): Replace this with an async version crbug.com/137160
+ GDataEntry* FindEntryByPathSync(const FilePath& file_path);
// Returns the GDataEntry* with the corresponding |resource_id|.
// TODO(achuith): Get rid of this in favor of async version crbug.com/13957.

Powered by Google App Engine
This is Rietveld 408576698