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

Unified Diff: google_apis/drive/time_util.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 | « google_apis/drive/drive_api_requests.cc ('k') | google_apis/gaia/fake_gaia.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: google_apis/drive/time_util.cc
diff --git a/google_apis/drive/time_util.cc b/google_apis/drive/time_util.cc
index cf2b453d38c78708b67a99b2db7c5a858c26c5aa..5a559cc08fed7f726b4baae3bae1d336709e68ef 100644
--- a/google_apis/drive/time_util.cc
+++ b/google_apis/drive/time_util.cc
@@ -64,7 +64,7 @@ bool GetTimeFromString(const base::StringPiece& raw_value,
// Parses timezone suffix on the time part if available.
{
std::vector<base::StringPiece> parts;
- if (time_and_tz[time_and_tz.size() - 1] == 'Z') {
+ if (time_and_tz.back() == 'Z') {
// Timezone is 'Z' (UTC)
has_timezone = true;
offset_to_utc_in_minutes = 0;
« no previous file with comments | « google_apis/drive/drive_api_requests.cc ('k') | google_apis/gaia/fake_gaia.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698