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

Unified Diff: chrome/browser/sync_file_system/drive_backend/drive_backend_util.cc

Issue 71183002: Implement SyncEngine::DumpFiles() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed string type issue Created 7 years, 1 month 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/sync_file_system/drive_backend/drive_backend_util.cc
diff --git a/chrome/browser/sync_file_system/drive_backend/drive_backend_util.cc b/chrome/browser/sync_file_system/drive_backend/drive_backend_util.cc
index b05bf625fb2c3481cbf9b43ee6ea9f844d0c5ebd..ac4db0a3abcf73eed610b8ba4047a1eb782e7ec8 100644
--- a/chrome/browser/sync_file_system/drive_backend/drive_backend_util.cc
+++ b/chrome/browser/sync_file_system/drive_backend/drive_backend_util.cc
@@ -4,8 +4,6 @@
#include "chrome/browser/sync_file_system/drive_backend/drive_backend_util.h"
-#include <string>
-
#include "base/file_util.h"
#include "base/logging.h"
#include "base/memory/scoped_vector.h"
@@ -118,5 +116,19 @@ webkit_blob::ScopedFile CreateTemporaryFile() {
base::MessageLoopProxy::current().get());
}
+std::string FileKindToString(FileKind file_kind) {
+ switch (file_kind) {
+ case FILE_KIND_UNSUPPORTED:
+ return "unsupported";
+ case FILE_KIND_FILE:
+ return "file";
+ case FILE_KIND_FOLDER:
+ return "folder";
+ }
+
+ NOTREACHED();
+ return "unknown";
+}
+
} // namespace drive_backend
} // namespace sync_file_system

Powered by Google App Engine
This is Rietveld 408576698