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

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

Issue 123013002: Make calls to AtomicString(const String&) explicit in inspector/ (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 12 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
« no previous file with comments | « Source/core/inspector/InspectorDOMAgent.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/inspector/InspectorResourceAgent.cpp
diff --git a/Source/core/inspector/InspectorResourceAgent.cpp b/Source/core/inspector/InspectorResourceAgent.cpp
index cb87d65f6ed727ccada011c5ca52b904518ff2a8..22c1167c7b046cec14a7bd8df0b9e6066b5290c2 100644
--- a/Source/core/inspector/InspectorResourceAgent.cpp
+++ b/Source/core/inspector/InspectorResourceAgent.cpp
@@ -299,7 +299,7 @@ void InspectorResourceAgent::willSendRequest(unsigned long identifier, DocumentL
for (JSONObject::const_iterator it = headers->begin(); it != end; ++it) {
String value;
if (it->value->asString(&value))
- request.setHTTPHeaderField(it->key, value);
+ request.setHTTPHeaderField(AtomicString(it->key), AtomicString(value));
}
}
@@ -716,7 +716,7 @@ void InspectorResourceAgent::loadResourceForFrontend(ErrorString* errorString, c
*errorString = "Request header \"" + it->key + "\" value is not a string";
return;
}
- request.addHTTPHeaderField(it->key, value);
+ request.addHTTPHeaderField(AtomicString(it->key), AtomicString(value));
}
}
« no previous file with comments | « Source/core/inspector/InspectorDOMAgent.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698