Chromium Code Reviews| 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 2ab0f76d88f5aa7ac3a30d1326f8b68724ee1d42..33158082a3255220acda324bb0e8b2d14fd69faf 100644 |
| --- a/chrome/browser/chromeos/drive/drive_resource_metadata.h |
| +++ b/chrome/browser/chromeos/drive/drive_resource_metadata.h |
| @@ -64,9 +64,11 @@ std::string ContentOriginToString(ContentOrigin origin); |
| // name is used in URLs for the file manager, hence user-visible. |
| const FilePath::CharType kDriveRootDirectory[] = FILE_PATH_LITERAL("drive"); |
| -// The resource ID for the root directory is defined in the spec: |
| +// The resource ID for the root directory for WAPI is defined in the spec: |
| // https://developers.google.com/google-apps/documents-list/ |
| -const char kDriveRootDirectoryResourceId[] = "folder:root"; |
| +// Note that this special ID only applies to WAPI. Drive uses a non-constant |
| +// unique ID given in About resource. |
| +const char kWAPIRootDirectoryResourceId[] = "folder:root"; |
| // This should be incremented when incompatibility change is made in |
| // drive.proto. |
| @@ -166,8 +168,8 @@ class DriveResourceMetadata { |
| // Creates a DriveDirectory instance. |
| scoped_ptr<DriveDirectory> CreateDriveDirectory(); |
| - // Sets root directory resource id and initialize the root entry. |
| - void InitializeRootEntry(const std::string& root_id); |
| + // Sets root directory resource ID and put root to ResourceMap. |
| + void SetRootResourceId(const std::string& id); |
|
satorux1
2012/10/26 07:52:44
Let's rename this back to InitializeRootEntry()
I
kochi
2012/10/26 09:01:23
Done.
|
| // Add |doc entry| to directory with path |directory_path| and invoke the |
| // callback asynchronously. |