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

Unified Diff: Source/platform/exported/WebData.cpp

Issue 438843004: Move the user agent styles sheets to blink_resources.grd (Part 3) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Removed header inclusion. Created 6 years, 3 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: Source/platform/exported/WebData.cpp
diff --git a/Source/platform/exported/WebData.cpp b/Source/platform/exported/WebData.cpp
index 4b4468ed1532af34d0da0c2d98562595b4c4629c..8b1a1ff2a2340c40d3a625b4a649e35cadd8fd7f 100644
--- a/Source/platform/exported/WebData.cpp
+++ b/Source/platform/exported/WebData.cpp
@@ -64,6 +64,15 @@ const char* WebData::data() const
return m_private->data();
}
+#if INSIDE_BLINK
+String WebData::toASCIIString() const
+{
+ String result(data(), size());
+ ASSERT(result.containsOnlyASCII());
+ return result;
+}
+#endif
+
WebData::WebData(const PassRefPtr<SharedBuffer>& buffer)
: m_private(buffer)
{

Powered by Google App Engine
This is Rietveld 408576698