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

Unified Diff: google_apis/drive/drive_api_requests.cc

Issue 2070283002: Use container::back() and container::pop_back(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 5 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 | « extensions/common/features/base_feature_provider.cc ('k') | google_apis/drive/time_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: google_apis/drive/drive_api_requests.cc
diff --git a/google_apis/drive/drive_api_requests.cc b/google_apis/drive/drive_api_requests.cc
index d1b9b1f5988b35735774ae6deb76750f3daa3c9f..307e5411477dd7e4c935af33f141b95119bf98c8 100644
--- a/google_apis/drive/drive_api_requests.cc
+++ b/google_apis/drive/drive_api_requests.cc
@@ -219,10 +219,9 @@ bool ParseMultipartResponse(const std::string& content_type,
if (content_type_piece.empty())
return false;
if (content_type_piece[0] == '"') {
- if (content_type_piece.size() <= 2 ||
- content_type_piece[content_type_piece.size() - 1] != '"') {
+ if (content_type_piece.size() <= 2 || content_type_piece.back() != '"')
return false;
- }
+
content_type_piece =
content_type_piece.substr(1, content_type_piece.size() - 2);
}
« no previous file with comments | « extensions/common/features/base_feature_provider.cc ('k') | google_apis/drive/time_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698