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

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

Issue 99733002: Update HTTPHeaderMap wrappers to use AtomicString type for header values (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase on master Created 7 years 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/FrameLoader.h ('k') | Source/core/xml/XMLHttpRequest.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/loader/FrameLoader.cpp
diff --git a/Source/core/loader/FrameLoader.cpp b/Source/core/loader/FrameLoader.cpp
index af1c3fd08222fb815d4215e5db97f07697236d5e..9778420dad8c95a249dcd5cb643be3f84cd62655 100644
--- a/Source/core/loader/FrameLoader.cpp
+++ b/Source/core/loader/FrameLoader.cpp
@@ -562,7 +562,7 @@ void FrameLoader::updateForSameDocumentNavigation(const KURL& newURL, SameDocume
if (sameDocumentNavigationSource != SameDocumentNavigationDefault) {
m_currentItem->setStateObject(data);
m_currentItem->setFormData(0);
- m_currentItem->setFormContentType(String());
+ m_currentItem->setFormContentType(nullAtom);
}
}
@@ -1173,10 +1173,10 @@ void FrameLoader::addExtraFieldsToRequest(ResourceRequest& request)
request.setHTTPAccept(defaultAcceptHeader);
// Make sure we send the Origin header.
- addHTTPOriginIfNeeded(request, String());
+ addHTTPOriginIfNeeded(request, nullAtom);
}
-void FrameLoader::addHTTPOriginIfNeeded(ResourceRequest& request, const String& origin)
+void FrameLoader::addHTTPOriginIfNeeded(ResourceRequest& request, const AtomicString& origin)
{
if (!request.httpOrigin().isEmpty())
return; // Request already has an Origin header.
« no previous file with comments | « Source/core/loader/FrameLoader.h ('k') | Source/core/xml/XMLHttpRequest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698