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

Unified Diff: third_party/WebKit/Source/core/loader/TextResourceDecoderBuilder.cpp

Issue 2502413004: WTF/std normalization: replace WTF::Vector::last with ::back (Closed)
Patch Set: rebase Created 4 years, 1 month 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: third_party/WebKit/Source/core/loader/TextResourceDecoderBuilder.cpp
diff --git a/third_party/WebKit/Source/core/loader/TextResourceDecoderBuilder.cpp b/third_party/WebKit/Source/core/loader/TextResourceDecoderBuilder.cpp
index eddb018817ef6e9b94f1554e826e03bc0614e36f..cd9228676d960c017437611558513e894d1086b8 100644
--- a/third_party/WebKit/Source/core/loader/TextResourceDecoderBuilder.cpp
+++ b/third_party/WebKit/Source/core/loader/TextResourceDecoderBuilder.cpp
@@ -77,7 +77,7 @@ static const WTF::TextEncoding getEncodingFromDomain(const KURL& url) {
Vector<String> tokens;
url.host().split(".", tokens);
if (!tokens.isEmpty()) {
- auto tld = tokens.last();
+ auto tld = tokens.back();
for (size_t i = 0; i < WTF_ARRAY_LENGTH(encodings); i++) {
if (tld == encodings[i].domain)
return WTF::TextEncoding(encodings[i].encoding);

Powered by Google App Engine
This is Rietveld 408576698