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

Unified Diff: third_party/WebKit/Source/platform/weborigin/KURL.cpp

Issue 1381683003: url: Get rid of UTF16Char type. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: REBASE Created 4 years, 11 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 | « no previous file | url/third_party/mozilla/url_parse.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/weborigin/KURL.cpp
diff --git a/third_party/WebKit/Source/platform/weborigin/KURL.cpp b/third_party/WebKit/Source/platform/weborigin/KURL.cpp
index 9e10715f1708e359b50005e5bef1ea377ece05d2..2d9b18abaa024ddcd084aff968337fcf35ed751e 100644
--- a/third_party/WebKit/Source/platform/weborigin/KURL.cpp
+++ b/third_party/WebKit/Source/platform/weborigin/KURL.cpp
@@ -101,7 +101,7 @@ public:
{
}
- void ConvertFromUTF16(const url::UTF16Char* input, int inputLength, url::CanonOutput* output) override
+ void ConvertFromUTF16(const base::char16* input, int inputLength, url::CanonOutput* output) override
{
CString encoded = m_encoding->encode(String(input, inputLength), WTF::URLEncodedEntitiesForUnencodables);
output->Append(encoded.data(), static_cast<int>(encoded.length()));
@@ -676,7 +676,7 @@ String decodeURLEscapeSequences(const String& string, const WTF::TextEncoding& e
// sucks, and we don't use the encoding properly, which will make some
// obscure anchor navigations fail.
StringUTF8Adaptor stringUTF8(string);
- url::RawCanonOutputT<url::UTF16Char> unescaped;
+ url::RawCanonOutputT<base::char16> unescaped;
url::DecodeURLEscapeSequences(stringUTF8.data(), stringUTF8.length(), &unescaped);
return StringImpl::create8BitIfPossible(reinterpret_cast<UChar*>(unescaped.data()), unescaped.length());
}
« no previous file with comments | « no previous file | url/third_party/mozilla/url_parse.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698