| 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);
|
|
|