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

Unified Diff: Source/core/timing/Performance.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/loader/FrameLoader.cpp ('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/timing/Performance.cpp
diff --git a/Source/core/timing/Performance.cpp b/Source/core/timing/Performance.cpp
index 532710007a794007df18539f7338dddca93e6da0..07a20310c3916a41411108d324c78d5f18b84e08 100644
--- a/Source/core/timing/Performance.cpp
+++ b/Source/core/timing/Performance.cpp
@@ -167,7 +167,7 @@ static bool passesTimingAllowCheck(const ResourceResponse& response, Document* r
if (resourceOrigin->isSameSchemeHostPort(requestingDocument->securityOrigin()))
return true;
- const String& timingAllowOriginString = response.httpHeaderField(timingAllowOrigin);
+ const AtomicString& timingAllowOriginString = response.httpHeaderField(timingAllowOrigin);
if (timingAllowOriginString.isEmpty() || equalIgnoringCase(timingAllowOriginString, "null"))
return false;
@@ -176,7 +176,7 @@ static bool passesTimingAllowCheck(const ResourceResponse& response, Document* r
const String& securityOrigin = requestingDocument->securityOrigin()->toString();
Vector<String> timingAllowOrigins;
- timingAllowOriginString.split(" ", timingAllowOrigins);
+ timingAllowOriginString.string().split(" ", timingAllowOrigins);
for (size_t i = 0; i < timingAllowOrigins.size(); ++i) {
if (timingAllowOrigins[i] == securityOrigin)
return true;
« no previous file with comments | « Source/core/loader/FrameLoader.cpp ('k') | Source/core/xml/XMLHttpRequest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698