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

Unified Diff: chrome/browser/ui/webui/feedback_ui.cc

Issue 10836354: Rename GData* to Drive* in gdata.proto (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix for comments. 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
« no previous file with comments | « chrome/browser/ui/webui/chromeos/drive_internals_ui.cc ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/feedback_ui.cc
diff --git a/chrome/browser/ui/webui/feedback_ui.cc b/chrome/browser/ui/webui/feedback_ui.cc
index a984733d902363f079a4301ea85c454098846b9e..eeddbae7de030f0f58da027ed2476a548448e3ac 100644
--- a/chrome/browser/ui/webui/feedback_ui.cc
+++ b/chrome/browser/ui/webui/feedback_ui.cc
@@ -59,8 +59,8 @@
#include "base/file_util.h"
#include "base/path_service.h"
#include "chrome/browser/chromeos/cros/cros_library.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.pb.h"
#include "chrome/browser/chromeos/gdata/gdata_system_service.h"
#include "chrome/browser/chromeos/gdata/gdata_util.h"
#include "chrome/browser/chromeos/login/user_manager.h"
@@ -114,8 +114,8 @@ std::string GetUserEmail() {
return manager->GetLoggedInUser().display_email();
}
-bool ScreenshotGDataTimestampComp(const gdata::GDataEntryProto& entry1,
- const gdata::GDataEntryProto& entry2) {
+bool ScreenshotGDataTimestampComp(const gdata::DriveEntryProto& entry1,
+ const gdata::DriveEntryProto& entry2) {
return entry1.file_info().last_modified() >
entry2.file_info().last_modified();
}
@@ -125,16 +125,16 @@ void ReadDirectoryCallback(size_t max_saved,
base::Closure callback,
gdata::GDataFileError error,
bool hide_hosted_documents,
- scoped_ptr<gdata::GDataEntryProtoVector> entries) {
+ scoped_ptr<gdata::DriveEntryProtoVector> entries) {
if (error != gdata::GDATA_FILE_OK) {
callback.Run();
return;
}
size_t max_scan = std::min(kMaxNumScanFiles, entries->size());
- std::vector<gdata::GDataEntryProto> screenshot_entries;
+ std::vector<gdata::DriveEntryProto> screenshot_entries;
for (size_t i = 0; i < max_scan; ++i) {
- const gdata::GDataEntryProto& entry = (*entries)[i];
+ const gdata::DriveEntryProto& entry = (*entries)[i];
if (StartsWithASCII(entry.base_name(), kScreenshotPrefix, true) &&
EndsWith(entry.base_name(), kScreenshotSuffix, true)) {
screenshot_entries.push_back(entry);
@@ -147,7 +147,7 @@ void ReadDirectoryCallback(size_t max_saved,
screenshot_entries.end(),
ScreenshotGDataTimestampComp);
for (size_t i = 0; i < sort_size; ++i) {
- const gdata::GDataEntryProto& entry = screenshot_entries[i];
+ const gdata::DriveEntryProto& entry = screenshot_entries[i];
saved_screenshots->push_back(
std::string(kSavedScreenshotsUrl) + entry.resource_id());
}
« no previous file with comments | « chrome/browser/ui/webui/chromeos/drive_internals_ui.cc ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698