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

Unified Diff: chrome/browser/chromeos/gdata/gdata_file_system_proxy.cc

Issue 10836354: Rename GData* to Drive* in gdata.proto (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase. Created 8 years, 4 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/chromeos/gdata/gdata_file_system_proxy.cc
diff --git a/chrome/browser/chromeos/gdata/gdata_file_system_proxy.cc b/chrome/browser/chromeos/gdata/gdata_file_system_proxy.cc
index 867dd1f37b967207fb82104800a9d988f56aa3b6..2ef4e0a8baf5a81f883533263c3d5c3726b25547 100644
--- a/chrome/browser/chromeos/gdata/gdata_file_system_proxy.cc
+++ b/chrome/browser/chromeos/gdata/gdata_file_system_proxy.cc
@@ -11,7 +11,7 @@
#include "base/platform_file.h"
#include "base/string_util.h"
#include "base/values.h"
-#include "chrome/browser/chromeos/gdata/gdata.pb.h"
+#include "chrome/browser/chromeos/gdata/drive.pb.h"
#include "chrome/browser/chromeos/gdata/gdata_file_system_interface.h"
#include "chrome/browser/chromeos/gdata/gdata_files.h"
#include "chrome/browser/chromeos/gdata/gdata_system_service.h"
@@ -163,8 +163,8 @@ void DidCloseFileForTruncate(
} // namespace
-base::FileUtilProxy::Entry GDataEntryProtoToFileUtilProxyEntry(
- const GDataEntryProto& proto) {
+base::FileUtilProxy::Entry DriveEntryProtoToFileUtilProxyEntry(
+ const DriveEntryProto& proto) {
base::PlatformFileInfo file_info;
GDataEntry::ConvertProtoToPlatformFileInfo(proto.file_info(), &file_info);
@@ -582,7 +582,7 @@ void GDataFileSystemProxy::OnGetEntryInfoByPath(
const FilePath& entry_path,
const FileSystemOperationInterface::SnapshotFileCallback& callback,
GDataFileError error,
- scoped_ptr<GDataEntryProto> entry_proto) {
+ scoped_ptr<DriveEntryProto> entry_proto) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
if (error != GDATA_FILE_OK || !entry_proto.get()) {
@@ -656,7 +656,7 @@ void GDataFileSystemProxy::OnGetMetadata(
const FilePath& file_path,
const FileSystemOperationInterface::GetMetadataCallback& callback,
GDataFileError error,
- scoped_ptr<GDataEntryProto> entry_proto) {
+ scoped_ptr<DriveEntryProto> entry_proto) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
if (error != GDATA_FILE_OK) {
@@ -680,7 +680,7 @@ void GDataFileSystemProxy::OnReadDirectory(
callback,
GDataFileError error,
bool hide_hosted_documents,
- scoped_ptr<GDataEntryProtoVector> proto_entries) {
+ scoped_ptr<DriveEntryProtoVector> proto_entries) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
if (error != GDATA_FILE_OK) {
@@ -694,13 +694,13 @@ void GDataFileSystemProxy::OnReadDirectory(
std::vector<base::FileUtilProxy::Entry> entries;
// Convert gdata files to something File API stack can understand.
for (size_t i = 0; i < proto_entries->size(); ++i) {
- const GDataEntryProto& proto = (*proto_entries)[i];
+ const DriveEntryProto& proto = (*proto_entries)[i];
if (proto.has_file_specific_info() &&
proto.file_specific_info().is_hosted_document() &&
hide_hosted_documents) {
continue;
}
- entries.push_back(GDataEntryProtoToFileUtilProxyEntry(proto));
+ entries.push_back(DriveEntryProtoToFileUtilProxyEntry(proto));
}
callback.Run(base::PLATFORM_FILE_OK, entries, false);

Powered by Google App Engine
This is Rietveld 408576698