Index: Source/core/inspector/InspectorPageAgent.cpp |
diff --git a/Source/core/inspector/InspectorPageAgent.cpp b/Source/core/inspector/InspectorPageAgent.cpp |
index 5e4cd283d22efc21eb788ffa7de8558bd0d43416..d81649a700a663afdac8c39d5614e58fe1c8a342 100644 |
--- a/Source/core/inspector/InspectorPageAgent.cpp |
+++ b/Source/core/inspector/InspectorPageAgent.cpp |
@@ -899,19 +899,19 @@ Frame* InspectorPageAgent::assertFrame(ErrorString* errorString, const String& f |
return frame; |
} |
-String InspectorPageAgent::resourceSourceMapURL(const String& url) |
+const AtomicString& InspectorPageAgent::resourceSourceMapURL(const String& url) |
{ |
- DEFINE_STATIC_LOCAL(String, sourceMapHttpHeader, ("SourceMap")); |
- DEFINE_STATIC_LOCAL(String, deprecatedSourceMapHttpHeader, ("X-SourceMap")); |
+ DEFINE_STATIC_LOCAL(const AtomicString, sourceMapHttpHeader, ("SourceMap", AtomicString::ConstructFromLiteral)); |
+ DEFINE_STATIC_LOCAL(const AtomicString, deprecatedSourceMapHttpHeader, ("X-SourceMap", AtomicString::ConstructFromLiteral)); |
if (url.isEmpty()) |
- return String(); |
+ return nullAtom; |
Frame* frame = mainFrame(); |
if (!frame) |
- return String(); |
+ return nullAtom; |
Resource* resource = cachedResource(frame, KURL(ParsedURLString, url)); |
if (!resource) |
- return String(); |
- String deprecatedHeaderSourceMapURL = resource->response().httpHeaderField(deprecatedSourceMapHttpHeader); |
+ return nullAtom; |
+ const AtomicString& deprecatedHeaderSourceMapURL = resource->response().httpHeaderField(deprecatedSourceMapHttpHeader); |
if (!deprecatedHeaderSourceMapURL.isEmpty()) { |
// FIXME: add deprecated console message here. |
return deprecatedHeaderSourceMapURL; |