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

Unified Diff: chrome/browser/chromeos/drive/drive_resource_metadata.h

Issue 12585003: drive: Add showroot=true to WAPI feed URLs and ignore "no parent" entries. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix browser_tests. Created 7 years, 9 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/drive/drive_resource_metadata.h
diff --git a/chrome/browser/chromeos/drive/drive_resource_metadata.h b/chrome/browser/chromeos/drive/drive_resource_metadata.h
index 5f78451668e11ff009975b576f7d328591613566..6dcc316c23a1b776b76b1d029e10f6ed703fa18c 100644
--- a/chrome/browser/chromeos/drive/drive_resource_metadata.h
+++ b/chrome/browser/chromeos/drive/drive_resource_metadata.h
@@ -365,11 +365,10 @@ class DriveResourceMetadata : public DriveResourceMetadataInterface {
// Searches for |file_path| synchronously.
DriveEntry* FindEntryByPathSync(const base::FilePath& file_path);
- // Helper function to get a parent directory given |parent_resource_id|.
- // Returns root if |parent_resource_id| is empty. Returns NULL if
- // |parent_resource_id| is not empty and the corresponding entry is not a
- // directory.
- DriveDirectory* GetParent(const std::string& parent_resource_id);
+ // Helper function to get a directory given |resource_id|. |resource_id| can
+ // not be empty. Returns NULL if it finds no corresponding entry, or the
+ // corresponding entry is not a directory.
+ DriveDirectory* GetDirectory(const std::string& resource_id);
// Returns virtual file path of the entry.
base::FilePath GetFilePath(const DriveEntryProto& entry);
« no previous file with comments | « chrome/browser/chromeos/drive/drive_file_system_unittest.cc ('k') | chrome/browser/chromeos/drive/drive_resource_metadata.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698