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

Unified Diff: chrome/browser/drive/drive_api_util.cc

Issue 881723002: Remove google_apis::ResourceEntry and related code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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/drive/drive_api_util.cc
diff --git a/chrome/browser/drive/drive_api_util.cc b/chrome/browser/drive/drive_api_util.cc
index 2d58930e15d878e93e7136b8fc1e30a32d524015..064f4a2d8740af5dc150982e12f84a2570fe56ca 100644
--- a/chrome/browser/drive/drive_api_util.cc
+++ b/chrome/browser/drive/drive_api_util.cc
@@ -15,7 +15,6 @@
#include "base/strings/utf_string_conversions.h"
#include "base/values.h"
#include "google_apis/drive/drive_api_parser.h"
-#include "google_apis/drive/gdata_wapi_parser.h"
#include "net/base/escape.h"
#include "third_party/re2/re2/re2.h"
#include "url/gurl.h"
@@ -131,29 +130,6 @@ std::string CanonicalizeResourceId(const std::string& resource_id) {
return resource_id;
}
-scoped_ptr<google_apis::ResourceEntry>
-ConvertFileResourceToResourceEntry(
- const google_apis::FileResource& file_resource) {
- scoped_ptr<google_apis::ResourceEntry> entry(new google_apis::ResourceEntry);
-
- // ResourceEntry
- entry->set_resource_id(file_resource.file_id());
- if (file_resource.IsDirectory())
- entry->set_kind(google_apis::ResourceEntry::ENTRY_KIND_FOLDER);
- else if (file_resource.IsHostedDocument())
- entry->set_kind(google_apis::ResourceEntry::ENTRY_KIND_UNKNOWN);
- else
- entry->set_kind(google_apis::ResourceEntry::ENTRY_KIND_FILE);
- entry->set_title(file_resource.title());
-
- // If file is removed completely, that information is only available in
- // ChangeResource, and is reflected in |removed_|. If file is trashed, the
- // file entry still exists but with its "trashed" label true.
- entry->set_deleted(file_resource.labels().is_trashed());
-
- return entry.Pass();
-}
-
std::string GetMd5Digest(const base::FilePath& file_path) {
const int kBufferSize = 512 * 1024; // 512kB.
« no previous file with comments | « chrome/browser/drive/drive_api_util.h ('k') | chrome/browser/sync_file_system/drive_backend/conflict_resolver_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698