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

Unified Diff: Source/core/fetch/ResourceFetcher.cpp

Issue 102103002: Have HashMap<KeyType, AtomicString>::get() return a const reference (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Use AtomicString::ConstructFromLiteral 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/fetch/CrossOriginAccessControl.cpp ('k') | Source/core/html/HTMLElement.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/fetch/ResourceFetcher.cpp
diff --git a/Source/core/fetch/ResourceFetcher.cpp b/Source/core/fetch/ResourceFetcher.cpp
index 9334779c50b475516308adb3d948ef5fe5ba10fc..cd92d75b11102d71dc77a1a85b3f192f25ca0aad 100644
--- a/Source/core/fetch/ResourceFetcher.cpp
+++ b/Source/core/fetch/ResourceFetcher.cpp
@@ -742,8 +742,8 @@ ResourcePtr<Resource> ResourceFetcher::revalidateResource(const FetchRequest& re
ResourceRequest revalidatingRequest(resource->resourceRequest());
addAdditionalRequestHeaders(revalidatingRequest, resource->type());
- const String& lastModified = resource->response().httpHeaderField("Last-Modified");
- const String& eTag = resource->response().httpHeaderField("ETag");
+ const AtomicString& lastModified = resource->response().httpHeaderField("Last-Modified");
+ const AtomicString& eTag = resource->response().httpHeaderField("ETag");
if (!lastModified.isEmpty() || !eTag.isEmpty()) {
ASSERT(context().cachePolicy(resource->type()) != CachePolicyReload);
if (context().cachePolicy(resource->type()) == CachePolicyRevalidate)
« no previous file with comments | « Source/core/fetch/CrossOriginAccessControl.cpp ('k') | Source/core/html/HTMLElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698