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

Unified Diff: google_apis/drive/drive_api_error_codes.cc

Issue 1053623004: Drive: Add multipart related utility methods. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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 | « google_apis/drive/drive_api_error_codes.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: google_apis/drive/drive_api_error_codes.cc
diff --git a/google_apis/drive/drive_api_error_codes.cc b/google_apis/drive/drive_api_error_codes.cc
index a90a887e039e55a9c2370a465f6625d489788565..cae5cfd89c02cd7b7e82cb289e658c2ca4a1ca1e 100644
--- a/google_apis/drive/drive_api_error_codes.cc
+++ b/google_apis/drive/drive_api_error_codes.cc
@@ -90,4 +90,8 @@ std::string DriveApiErrorCodeToString(DriveApiErrorCode error) {
return "UNKNOWN_ERROR_" + base::IntToString(error);
}
+bool IsSuccessfulDriveApiErrorCode(DriveApiErrorCode error) {
+ return 200 <= error && error <= 299;
+}
+
} // namespace google_apis
« no previous file with comments | « google_apis/drive/drive_api_error_codes.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698