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

Unified Diff: Source/core/inspector/InspectorResourceAgent.cpp

Issue 618583002: Correct data size argument type in resource loading path to unsigned (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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/core/inspector/InspectorResourceAgent.cpp
diff --git a/Source/core/inspector/InspectorResourceAgent.cpp b/Source/core/inspector/InspectorResourceAgent.cpp
index 1b49af7d81bcad480dae111e0a8c8385af8bdbcc..cfff706d53c099bf9d8d325364f456a012486927 100644
--- a/Source/core/inspector/InspectorResourceAgent.cpp
+++ b/Source/core/inspector/InspectorResourceAgent.cpp
@@ -117,14 +117,11 @@ public:
m_responseHeaders = response.httpHeaderFields();
}
- virtual void didReceiveData(const char* data, int dataLength) OVERRIDE
+ virtual void didReceiveData(const char* data, unsigned dataLength) OVERRIDE
{
if (!dataLength)
return;
- if (dataLength == -1)
- dataLength = strlen(data);
-
m_responseText = m_responseText.concatenateWith(m_decoder->decode(data, dataLength));
}

Powered by Google App Engine
This is Rietveld 408576698