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

Unified Diff: third_party/WebKit/Source/modules/fetch/FetchRequestData.h

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/modules/fetch/FetchRequestData.h
diff --git a/third_party/WebKit/Source/modules/fetch/FetchRequestData.h b/third_party/WebKit/Source/modules/fetch/FetchRequestData.h
index 42d18c521ec8400fbc71de5cd5ac26b50aea59f2..ebd39b7348ecf1550421e77cde696286764fec7d 100644
--- a/third_party/WebKit/Source/modules/fetch/FetchRequestData.h
+++ b/third_party/WebKit/Source/modules/fetch/FetchRequestData.h
@@ -74,7 +74,7 @@ public:
// We use these strings instead of "no-referrer" and "client" in the spec.
static AtomicString noReferrerString() { return AtomicString(); }
- static AtomicString clientReferrerString() { return AtomicString("about:client", AtomicString::ConstructFromLiteral); }
+ static AtomicString clientReferrerString() { return AtomicString("about:client"); }
DECLARE_TRACE();

Powered by Google App Engine
This is Rietveld 408576698