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

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

Issue 414203003: Remove unnecessary utilities from drive::util. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix test Created 6 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
« no previous file with comments | « chrome/browser/drive/drive_api_util.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 2a3dbd414626a1665a4fe6c30e3f61029014901b..0538ddda89686f1ee16de3cc91a8167b5b863912 100644
--- a/chrome/browser/drive/drive_api_util.cc
+++ b/chrome/browser/drive/drive_api_util.cc
@@ -44,7 +44,6 @@ const HostedDocumentKind kHostedDocumentKinds[] = {
} // namespace
-
std::string EscapeQueryStringValue(const std::string& str) {
std::string result;
result.reserve(str.size());
@@ -342,8 +341,6 @@ std::string GetMd5Digest(const base::FilePath& file_path) {
return MD5DigestToBase16(digest);
}
-const char kWapiRootDirectoryResourceId[] = "folder:root";
-
std::string GetHostedDocumentExtension(const std::string& mime_type) {
for (size_t i = 0; i < arraysize(kHostedDocumentKinds); ++i) {
if (mime_type == kHostedDocumentKinds[i].mime_type)
@@ -352,14 +349,6 @@ std::string GetHostedDocumentExtension(const std::string& mime_type) {
return std::string();
}
-std::string GetHostedDocumentMimeType(const std::string& extension) {
- for (size_t i = 0; i < arraysize(kHostedDocumentKinds); ++i) {
- if (extension == kHostedDocumentKinds[i].extension)
- return kHostedDocumentKinds[i].mime_type;
- }
- return std::string();
-}
-
bool IsHostedDocument(const std::string& mime_type) {
for (size_t i = 0; i < arraysize(kHostedDocumentKinds); ++i) {
if (mime_type == kHostedDocumentKinds[i].mime_type)
« no previous file with comments | « chrome/browser/drive/drive_api_util.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698