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

Unified Diff: third_party/WebKit/public/platform/WebSecurityOrigin.h

Issue 2573113002: Do not check for ASCII in WebSecurityOrigin->Origin conversion (Closed)
Patch Set: Created 4 years 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/public/platform/WebSecurityOrigin.h
diff --git a/third_party/WebKit/public/platform/WebSecurityOrigin.h b/third_party/WebKit/public/platform/WebSecurityOrigin.h
index 909b5732b018533143af8863d6350baa7a0dacb5..be7bd5b793f4bd2e604d05691abcb2cff019138d 100644
--- a/third_party/WebKit/public/platform/WebSecurityOrigin.h
+++ b/third_party/WebKit/public/platform/WebSecurityOrigin.h
@@ -123,8 +123,8 @@ class WebSecurityOrigin {
operator url::Origin() const {
return isUnique() ? url::Origin()
: url::Origin::CreateFromNormalizedTupleWithSuborigin(
- protocol().utf8(), host().utf8(), effectivePort(),
- suborigin().utf8());
+ protocol().ascii(), host().ascii(), effectivePort(),
+ suborigin().ascii());
}
WebSecurityOrigin(const url::Origin& origin) : m_private(0) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698