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

Unified Diff: google_apis/gaia/fake_gaia.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/time_util.cc ('k') | gpu/command_buffer/client/program_info_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: google_apis/gaia/fake_gaia.cc
diff --git a/google_apis/gaia/fake_gaia.cc b/google_apis/gaia/fake_gaia.cc
index 583494b3f50c8e42e1ab58348287e4cf0229be96..ce62f1f1703db8c5dd91fcf770e6483c8d8a787e 100644
--- a/google_apis/gaia/fake_gaia.cc
+++ b/google_apis/gaia/fake_gaia.cc
@@ -85,7 +85,7 @@ CookieMap GetRequestCookies(const HttpRequest& request) {
continue;
std::string value = name_value[1];
- if (value.size() && value[value.size() - 1] == ';')
+ if (value.size() && value.back() == ';')
value = value.substr(0, value.size() -1);
result.insert(std::make_pair(name_value[0], value));
« no previous file with comments | « google_apis/drive/time_util.cc ('k') | gpu/command_buffer/client/program_info_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698