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

Unified Diff: Source/core/loader/FrameFetchContext.cpp

Issue 123003002: Make calls to AtomicString(const String&) explicit in loader/ and fetch/ (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase 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/loader/FormSubmission.cpp ('k') | Source/core/loader/FrameLoader.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/loader/FrameFetchContext.cpp
diff --git a/Source/core/loader/FrameFetchContext.cpp b/Source/core/loader/FrameFetchContext.cpp
index f8ab31113996109b33d7bb6b218d9289426f8719..c124d9355c0e77a0945ac28164094f9d0d31ca2d 100644
--- a/Source/core/loader/FrameFetchContext.cpp
+++ b/Source/core/loader/FrameFetchContext.cpp
@@ -74,9 +74,9 @@ void FrameFetchContext::addAdditionalRequestHeaders(Document* document, Resource
if (outgoingReferrer.isEmpty())
request.clearHTTPReferrer();
else if (!request.httpReferrer())
- request.setHTTPReferrer(outgoingReferrer);
+ request.setHTTPReferrer(AtomicString(outgoingReferrer));
- FrameLoader::addHTTPOriginIfNeeded(request, outgoingOrigin);
+ FrameLoader::addHTTPOriginIfNeeded(request, AtomicString(outgoingOrigin));
}
if (isMainResource && m_frame->isMainFrame())
« no previous file with comments | « Source/core/loader/FormSubmission.cpp ('k') | Source/core/loader/FrameLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698