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

Unified Diff: Source/weborigin/KURL.cpp

Issue 20135002: Optimize WebURL -> GURL conversions (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 7 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 | « Source/weborigin/KURL.h ('k') | public/platform/WebURL.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/weborigin/KURL.cpp
diff --git a/Source/weborigin/KURL.cpp b/Source/weborigin/KURL.cpp
index 9f330a139a3637745a0007c264edd9e9d6d6d07c..ac6959da62da1f16bf6487b8346d430f3fefe06c 100644
--- a/Source/weborigin/KURL.cpp
+++ b/Source/weborigin/KURL.cpp
@@ -206,11 +206,11 @@ KURL::KURL(const KURL& base, const String& relative, const WTF::TextEncoding& en
init(base, relative, &encoding.encodingForFormSubmission());
}
-KURL::KURL(const CString& canonicalSpec, const url_parse::Parsed& parsed, bool isValid)
+KURL::KURL(const AtomicString& canonicalString, const url_parse::Parsed& parsed, bool isValid)
: m_isValid(isValid)
, m_protocolIsInHTTPFamily(false)
, m_parsed(parsed)
- , m_string(AtomicString::fromUTF8(canonicalSpec.data(), canonicalSpec.length()))
+ , m_string(canonicalString)
{
initProtocolIsInHTTPFamily();
initInnerURL();
« no previous file with comments | « Source/weborigin/KURL.h ('k') | public/platform/WebURL.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698