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

Unified Diff: chrome/browser/google_apis/gdata_wapi_parser.cc

Issue 10920091: Move Drive API files to google_apis directory (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Disable some tests 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/google_apis/gdata_wapi_parser.cc
diff --git a/chrome/browser/chromeos/gdata/gdata_wapi_parser.cc b/chrome/browser/google_apis/gdata_wapi_parser.cc
similarity index 99%
rename from chrome/browser/chromeos/gdata/gdata_wapi_parser.cc
rename to chrome/browser/google_apis/gdata_wapi_parser.cc
index 3a1d685e19eccb80f8230fbe8fe77e98da1cbf0b..b5728e369740dc97c436eddafedcea9b5edac716 100644
--- a/chrome/browser/chromeos/gdata/gdata_wapi_parser.cc
+++ b/chrome/browser/google_apis/gdata_wapi_parser.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "chrome/browser/chromeos/gdata/gdata_wapi_parser.h"
+#include "chrome/browser/google_apis/gdata_wapi_parser.h"
#include <algorithm>
@@ -15,8 +15,8 @@
#include "base/string_util.h"
#include "base/utf_string_conversions.h"
#include "base/values.h"
-#include "chrome/browser/chromeos/gdata/drive_api_parser.h"
-#include "chrome/browser/chromeos/gdata/gdata_util.h"
+#include "chrome/browser/google_apis/drive_api_parser.h"
+#include "chrome/browser/google_apis/gdata_util.h"
#include "third_party/libxml/chromium/libxml_utils.h"
using base::Value;
@@ -649,9 +649,14 @@ std::string DocumentEntry::GetHostedDocumentExtension() const {
// static
bool DocumentEntry::HasHostedDocumentExtension(const FilePath& file) {
- FilePath::StringType file_extension = file.Extension();
+#if defined(OS_WIN)
+ std::string file_extension = WideToUTF8(file.Extension());
+#else
+ std::string file_extension = file.Extension();
+#endif
for (size_t i = 0; i < arraysize(kEntryKindMap); ++i) {
const char* document_extension = kEntryKindMap[i].extension;
+
if (document_extension && file_extension == document_extension)
return true;
}

Powered by Google App Engine
This is Rietveld 408576698