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

Unified Diff: Source/core/timing/Performance.cpp

Issue 108683002: Use xmlAtom / starAtom when possible instead of string literals (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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/svg/SVGLangSpace.cpp ('k') | no next file » | 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 07a20310c3916a41411108d324c78d5f18b84e08..e441579b930df6dc43251b7f826effcfc1e855d6 100644
--- a/Source/core/timing/Performance.cpp
+++ b/Source/core/timing/Performance.cpp
@@ -171,7 +171,7 @@ static bool passesTimingAllowCheck(const ResourceResponse& response, Document* r
if (timingAllowOriginString.isEmpty() || equalIgnoringCase(timingAllowOriginString, "null"))
return false;
- if (timingAllowOriginString == "*")
+ if (timingAllowOriginString == starAtom)
return true;
const String& securityOrigin = requestingDocument->securityOrigin()->toString();
« no previous file with comments | « Source/core/svg/SVGLangSpace.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698