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

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

Issue 1767883002: DevTools: generate string16-based handlers for v8_inspector. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: for landing 2 Created 4 years, 9 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/core/inspector/InspectorResourceAgent.cpp
diff --git a/third_party/WebKit/Source/core/inspector/InspectorResourceAgent.cpp b/third_party/WebKit/Source/core/inspector/InspectorResourceAgent.cpp
index f6beba8ed740f2e82b4e58503ec8b4874493c6f0..3ebbcf45edf631104b78ecc7bda8aeef7ef8f80d 100644
--- a/third_party/WebKit/Source/core/inspector/InspectorResourceAgent.cpp
+++ b/third_party/WebKit/Source/core/inspector/InspectorResourceAgent.cpp
@@ -507,9 +507,9 @@ void InspectorResourceAgent::willSendRequest(LocalFrame* frame, unsigned long id
if (headers) {
for (size_t i = 0; i < headers->size(); ++i) {
auto header = headers->at(i);
- String value;
+ String16 value;
if (header.second->asString(&value))
- request.setHTTPHeaderField(AtomicString(header.first), AtomicString(value));
+ request.setHTTPHeaderField(AtomicString(header.first), AtomicString(String(value)));
}
}
@@ -758,7 +758,7 @@ void InspectorResourceAgent::removedResourceFromMemoryCache(Resource* cachedReso
void InspectorResourceAgent::applyUserAgentOverride(String* userAgent)
{
- String userAgentOverride;
+ String16 userAgentOverride;
m_state->getString(ResourceAgentState::userAgentOverride, &userAgentOverride);
if (!userAgentOverride.isEmpty())
*userAgent = userAgentOverride;

Powered by Google App Engine
This is Rietveld 408576698