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

Unified Diff: third_party/WebKit/Source/core/fetch/ScriptResource.cpp

Issue 1844223002: Literal AtomicString construction can rely on strlen optimization. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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
Index: third_party/WebKit/Source/core/fetch/ScriptResource.cpp
diff --git a/third_party/WebKit/Source/core/fetch/ScriptResource.cpp b/third_party/WebKit/Source/core/fetch/ScriptResource.cpp
index 261454f9022b278543cbb2f3fd08a72ca85256bb..937a9d5c7a43f23ef587c5e6d72d0417556663c9 100644
--- a/third_party/WebKit/Source/core/fetch/ScriptResource.cpp
+++ b/third_party/WebKit/Source/core/fetch/ScriptResource.cpp
@@ -50,7 +50,7 @@ ScriptResource::ScriptResource(const ResourceRequest& resourceRequest, const Res
: TextResource(resourceRequest, Script, options, "application/javascript", charset)
, m_integrityDisposition(ScriptIntegrityDisposition::NotChecked)
{
- DEFINE_STATIC_LOCAL(const AtomicString, acceptScript, ("*/*", AtomicString::ConstructFromLiteral));
+ DEFINE_STATIC_LOCAL(const AtomicString, acceptScript, ("*/*"));
// It's javascript we want.
// But some websites think their scripts are <some wrong mimetype here>

Powered by Google App Engine
This is Rietveld 408576698