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; |