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

Unified Diff: chrome/browser/drive/drive_api_service.cc

Issue 881403003: Rename gdata_errorcode.h to drive_api_error_codes.h (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix typos in BUILD.gn Created 5 years, 11 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/drive/drive_api_service.cc
diff --git a/chrome/browser/drive/drive_api_service.cc b/chrome/browser/drive/drive_api_service.cc
index 66faaba8c720adc2a7c03222387c1402b5a73b1f..48f2cb0cb4049b12457e331e4b89a90da206dc9e 100644
--- a/chrome/browser/drive/drive_api_service.cc
+++ b/chrome/browser/drive/drive_api_service.cc
@@ -31,9 +31,9 @@ using google_apis::FileList;
using google_apis::FileListCallback;
using google_apis::FileResource;
using google_apis::FileResourceCallback;
-using google_apis::GDATA_OTHER_ERROR;
-using google_apis::GDATA_PARSE_ERROR;
-using google_apis::GDataErrorCode;
+using google_apis::DRIVE_OTHER_ERROR;
mtomasz 2015/01/29 06:18:01 nit: Alpha order.
+using google_apis::DRIVE_PARSE_ERROR;
+using google_apis::DriveApiErrorCode;
using google_apis::GetContentCallback;
using google_apis::GetShareUrlCallback;
using google_apis::HTTP_NOT_IMPLEMENTED;
@@ -118,7 +118,7 @@ const char kChangeListFields[] =
void ExtractOpenUrlAndRun(const std::string& app_id,
const AuthorizeAppCallback& callback,
- GDataErrorCode error,
+ DriveApiErrorCode error,
scoped_ptr<FileResource> value) {
DCHECK(!callback.is_null());
@@ -137,11 +137,11 @@ void ExtractOpenUrlAndRun(const std::string& app_id,
}
// Not found.
- callback.Run(GDATA_OTHER_ERROR, GURL());
+ callback.Run(DRIVE_OTHER_ERROR, GURL());
}
void ExtractShareUrlAndRun(const GetShareUrlCallback& callback,
- GDataErrorCode error,
+ DriveApiErrorCode error,
scoped_ptr<FileResource> value) {
callback.Run(error, value ? value->share_link() : GURL());
}
@@ -149,7 +149,7 @@ void ExtractShareUrlAndRun(const GetShareUrlCallback& callback,
// Ignores the |entry|, and runs the |callback|.
void EntryActionCallbackAdapter(
const EntryActionCallback& callback,
- GDataErrorCode error, scoped_ptr<FileResource> entry) {
+ DriveApiErrorCode error, scoped_ptr<FileResource> entry) {
callback.Run(error);
}

Powered by Google App Engine
This is Rietveld 408576698