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

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

Issue 10918101: Rename elements of LinkType enum (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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/drive_files.cc
diff --git a/chrome/browser/chromeos/gdata/drive_files.cc b/chrome/browser/chromeos/gdata/drive_files.cc
index 2aef025315ed20da0ebcccaf1fafdb25717db9ca..7ed857199336ad7a78ad3b06f09bb4b97afd5c6d 100644
--- a/chrome/browser/chromeos/gdata/drive_files.cc
+++ b/chrome/browser/chromeos/gdata/drive_files.cc
@@ -64,11 +64,11 @@ void DriveEntry::InitFromDocumentEntry(const DocumentEntry& doc) {
content_url_ = doc.content_url();
deleted_ = doc.deleted();
- const Link* edit_link = doc.GetLinkByType(Link::EDIT);
+ const Link* edit_link = doc.GetLinkByType(Link::kEdit);
if (edit_link)
edit_url_ = edit_link->href();
- const Link* parent_link = doc.GetLinkByType(Link::PARENT);
+ const Link* parent_link = doc.GetLinkByType(Link::kParent);
if (parent_link)
parent_resource_id_ = ExtractResourceId(parent_link->href());
}
@@ -150,7 +150,7 @@ void DriveFile::InitFromDocumentEntry(const DocumentEntry& doc) {
// The resumable-edit-media link should only be present for regular
// files as hosted documents are not uploadable.
- const Link* upload_link = doc.GetLinkByType(Link::RESUMABLE_EDIT_MEDIA);
+ const Link* upload_link = doc.GetLinkByType(Link::kResumableEditMedia);
if (upload_link)
upload_url_ = upload_link->href();
} else {
@@ -171,11 +171,11 @@ void DriveFile::InitFromDocumentEntry(const DocumentEntry& doc) {
// |is_hosted_document_| and |document_extension_| are set.
SetBaseNameFromTitle();
- const Link* thumbnail_link = doc.GetLinkByType(Link::THUMBNAIL);
+ const Link* thumbnail_link = doc.GetLinkByType(Link::kThumbnail);
if (thumbnail_link)
thumbnail_url_ = thumbnail_link->href();
- const Link* alternate_link = doc.GetLinkByType(Link::ALTERNATE);
+ const Link* alternate_link = doc.GetLinkByType(Link::kAlternate);
if (alternate_link)
alternate_url_ = alternate_link->href();
}
@@ -198,7 +198,7 @@ DriveDirectory* DriveDirectory::AsDriveDirectory() {
void DriveDirectory::InitFromDocumentEntry(const DocumentEntry& doc) {
DriveEntry::InitFromDocumentEntry(doc);
- const Link* upload_link = doc.GetLinkByType(Link::RESUMABLE_CREATE_MEDIA);
+ const Link* upload_link = doc.GetLinkByType(Link::kResumableCreateMedia);
if (upload_link)
upload_url_ = upload_link->href();
}
« no previous file with comments | « no previous file | chrome/browser/chromeos/gdata/gdata_operations.cc » ('j') | chrome/browser/chromeos/gdata/gdata_wapi_parser.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698