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

Unified Diff: third_party/WebKit/Source/platform/exported/WebString.cpp

Issue 1568073002: Reduce string copies in GURL creation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Mac 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
Index: third_party/WebKit/Source/platform/exported/WebString.cpp
diff --git a/third_party/WebKit/Source/platform/exported/WebString.cpp b/third_party/WebKit/Source/platform/exported/WebString.cpp
index 6371178e6544bbbe3507ea4c292c9b30b25408c4..aa3b35938733bc01ef9d5ad80d58f24db2187ee9 100644
--- a/third_party/WebKit/Source/platform/exported/WebString.cpp
+++ b/third_party/WebKit/Source/platform/exported/WebString.cpp
@@ -63,12 +63,12 @@ bool WebString::is8Bit() const
return m_private->is8Bit();
}
-const WebLChar* WebString::data8() const
+const WebLChar* WebString::data8OrNull() const
{
return !m_private.isNull() && is8Bit() ? m_private->characters8() : 0;
}
-const WebUChar* WebString::data16() const
+const WebUChar* WebString::data16OrNull() const
{
return !m_private.isNull() && !is8Bit() ? m_private->characters16() : 0;
}

Powered by Google App Engine
This is Rietveld 408576698