Index: chrome/browser/chromeos/drive/resource_entry_conversion.cc |
diff --git a/chrome/browser/chromeos/drive/resource_entry_conversion.cc b/chrome/browser/chromeos/drive/resource_entry_conversion.cc |
index ebaaadb6d3115c509bd07d4466922307478360c7..61be021988b8cf1230c2733856c950ac77c1439f 100644 |
--- a/chrome/browser/chromeos/drive/resource_entry_conversion.cc |
+++ b/chrome/browser/chromeos/drive/resource_entry_conversion.cc |
@@ -12,7 +12,7 @@ |
#include "chrome/browser/chromeos/drive/file_system_util.h" |
#include "chrome/browser/drive/drive_api_util.h" |
#include "google_apis/drive/drive_api_parser.h" |
-#include "google_apis/drive/gdata_wapi_parser.h" |
+#include "google_apis/drive/drive_entry_kinds.h" |
namespace drive { |
@@ -79,14 +79,11 @@ bool ConvertFileResourceToResourceEntry( |
// TODO(hashimoto): Get rid of WAPI stuff. crbug.com/357038 |
const google_apis::DriveEntryKind entry_kind = util::GetKind(input); |
- const int entry_kind_class = |
- google_apis::ResourceEntry::ClassifyEntryKind(entry_kind); |
- const bool is_file = entry_kind_class & |
- google_apis::ResourceEntry::KIND_OF_FILE; |
- const bool is_hosted_document = entry_kind_class & |
- google_apis::ResourceEntry::KIND_OF_HOSTED_DOCUMENT; |
- const bool is_folder = entry_kind_class & |
- google_apis::ResourceEntry::KIND_OF_FOLDER; |
+ const int entry_kind_class = google_apis::ClassifyEntryKind(entry_kind); |
+ const bool is_file = entry_kind_class & google_apis::KIND_OF_FILE; |
+ const bool is_hosted_document = |
+ entry_kind_class & google_apis::KIND_OF_HOSTED_DOCUMENT; |
+ const bool is_folder = entry_kind_class & google_apis::KIND_OF_FOLDER; |
if (is_file || is_hosted_document) { |
FileSpecificInfo* file_specific_info = |
@@ -100,7 +97,7 @@ bool ConvertFileResourceToResourceEntry( |
// TODO(satorux): Figure out better way how to pass input info like kind |
// to UI through the File API stack. |
const std::string document_extension = |
- google_apis::ResourceEntry::GetHostedDocumentExtension(entry_kind); |
+ google_apis::GetHostedDocumentExtension(entry_kind); |
file_specific_info->set_document_extension(document_extension); |
converted.set_base_name( |
util::NormalizeFileName(converted.title() + document_extension)); |