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

Unified Diff: third_party/WebKit/Source/modules/credentialmanager/PasswordCredential.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/modules/credentialmanager/PasswordCredential.cpp
diff --git a/third_party/WebKit/Source/modules/credentialmanager/PasswordCredential.cpp b/third_party/WebKit/Source/modules/credentialmanager/PasswordCredential.cpp
index 101706dae4ca904599a4401981610a99f9d16b37..84d20e4fe7e16b66b059ba42f07d2950e7efea47 100644
--- a/third_party/WebKit/Source/modules/credentialmanager/PasswordCredential.cpp
+++ b/third_party/WebKit/Source/modules/credentialmanager/PasswordCredential.cpp
@@ -69,7 +69,7 @@ PassRefPtr<EncodedFormData> PasswordCredential::encodeFormData(String& contentTy
params->append(idName(), id());
params->append(passwordName(), password());
- contentType = AtomicString("application/x-www-form-urlencoded;charset=UTF-8", AtomicString::ConstructFromLiteral);
+ contentType = AtomicString("application/x-www-form-urlencoded;charset=UTF-8");
return params->encodeFormData();
}
@@ -93,7 +93,7 @@ PassRefPtr<EncodedFormData> PasswordCredential::encodeFormData(String& contentTy
formData->append(passwordName(), password());
RefPtr<EncodedFormData> encodedData = formData->encodeMultiPartFormData();
- contentType = AtomicString("multipart/form-data; boundary=", AtomicString::ConstructFromLiteral) + encodedData->boundary().data();
+ contentType = AtomicString("multipart/form-data; boundary=") + encodedData->boundary().data();
return encodedData.release();
}

Powered by Google App Engine
This is Rietveld 408576698