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

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

Issue 2522583002: Roll third_party/inspector_protocol to 4ad35c45aca9834b67ec2cb152c816ea1b7ceb48 (Closed)
Patch Set: updated README.chromium Created 4 years, 1 month 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/InspectorNetworkAgent.cpp
diff --git a/third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.cpp b/third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.cpp
index 02ff9331215d9cbebb3de32c0d78805420a1b8f6..6e391d3c4f989d21b6712d9615fb2282eb29f02a 100644
--- a/third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.cpp
+++ b/third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.cpp
@@ -139,7 +139,7 @@ static std::unique_ptr<protocol::Network::Headers> buildObjectForHeaders(
for (const auto& header : headers)
headersObject->setString(header.key.getString(), header.value);
protocol::ErrorSupport errors;
- return protocol::Network::Headers::parse(headersObject.get(), &errors);
+ return protocol::Network::Headers::fromValue(headersObject.get(), &errors);
}
class InspectorFileReaderLoaderClient final : public FileReaderLoaderClient {
@@ -1194,7 +1194,7 @@ Response InspectorNetworkAgent::setUserAgentOverride(const String& userAgent) {
Response InspectorNetworkAgent::setExtraHTTPHeaders(
const std::unique_ptr<protocol::Network::Headers> headers) {
m_state->setObject(NetworkAgentState::extraRequestHeaders,
- headers->serialize());
+ headers->toValue());
return Response::OK();
}

Powered by Google App Engine
This is Rietveld 408576698