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

Unified Diff: chrome/browser/google_apis/gdata_operations.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_operations.cc
diff --git a/chrome/browser/chromeos/gdata/gdata_operations.cc b/chrome/browser/google_apis/gdata_operations.cc
similarity index 98%
rename from chrome/browser/chromeos/gdata/gdata_operations.cc
rename to chrome/browser/google_apis/gdata_operations.cc
index cb03ff6408dabd09844d52831b49641249edde2f..470e03c27a5d43ad40f3f633a8ca4f6b9deefacc 100644
--- a/chrome/browser/chromeos/gdata/gdata_operations.cc
+++ b/chrome/browser/google_apis/gdata_operations.cc
@@ -2,13 +2,13 @@
// 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_operations.h"
+#include "chrome/browser/google_apis/gdata_operations.h"
#include "base/string_number_conversions.h"
#include "base/stringprintf.h"
#include "base/values.h"
-#include "chrome/browser/chromeos/gdata/gdata_util.h"
-#include "chrome/browser/chromeos/gdata/gdata_wapi_parser.h"
+#include "chrome/browser/google_apis/gdata_util.h"
+#include "chrome/browser/google_apis/gdata_wapi_parser.h"
#include "chrome/common/net/url_util.h"
#include "content/public/browser/browser_thread.h"
#include "net/base/escape.h"
@@ -418,7 +418,7 @@ bool CreateDirectoryOperation::GetContentData(std::string* upload_content_type,
"http://schemas.google.com/docs/2007#folder");
xml_writer.EndElement(); // Ends "category" element.
- xml_writer.WriteElement("title", directory_name_);
+ xml_writer.WriteElement("title", FilePath(directory_name_).AsUTF8Unsafe());
xml_writer.EndElement(); // Ends "entry" element.
xml_writer.StopWriting();
@@ -459,7 +459,7 @@ bool CopyDocumentOperation::GetContentData(std::string* upload_content_type,
xml_writer.AddAttribute("xmlns", "http://www.w3.org/2005/Atom");
xml_writer.WriteElement("id", resource_id_);
- xml_writer.WriteElement("title", new_name_);
+ xml_writer.WriteElement("title", FilePath(new_name_).AsUTF8Unsafe());
xml_writer.EndElement(); // Ends "entry" element.
xml_writer.StopWriting();
@@ -505,7 +505,7 @@ bool RenameResourceOperation::GetContentData(std::string* upload_content_type,
xml_writer.StartElement("entry");
xml_writer.AddAttribute("xmlns", "http://www.w3.org/2005/Atom");
- xml_writer.WriteElement("title", new_name_);
+ xml_writer.WriteElement("title", FilePath(new_name_).AsUTF8Unsafe());
xml_writer.EndElement(); // Ends "entry" element.
xml_writer.StopWriting();

Powered by Google App Engine
This is Rietveld 408576698