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

Unified Diff: third_party/WebKit/Source/modules/credentialmanager/PasswordCredential.cpp

Issue 2725593003: Construct URLSearchParams from sequence initializer. (Closed)
Patch Set: style update Created 3 years, 10 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 17cc39ad98e850bda95a1ba9f4b17bb25e8894eb..381369edf7b34f2bbe2d4eab37d7470f1f880019 100644
--- a/third_party/WebKit/Source/modules/credentialmanager/PasswordCredential.cpp
+++ b/third_party/WebKit/Source/modules/credentialmanager/PasswordCredential.cpp
@@ -103,7 +103,7 @@ PasswordCredential* PasswordCredential::create(HTMLFormElement* form,
if (form->enctype() == "multipart/form-data") {
additionalData.setFormData(formData);
} else {
- URLSearchParams* params = URLSearchParams::create(URLSearchParamsInit());
+ URLSearchParams* params = URLSearchParams::create(String());
for (const FormData::Entry* entry : formData->entries()) {
if (entry->isString())
params->append(entry->name().data(), entry->value().data());
@@ -135,7 +135,7 @@ PassRefPtr<EncodedFormData> PasswordCredential::encodeFormData(
if (m_additionalData.isURLSearchParams()) {
// If |additionalData| is a 'URLSearchParams' object, build a urlencoded
// response.
- URLSearchParams* params = URLSearchParams::create(URLSearchParamsInit());
+ URLSearchParams* params = URLSearchParams::create(String());
URLSearchParams* additionalData = m_additionalData.getAsURLSearchParams();
for (const auto& param : additionalData->params()) {
const String& name = param.first;

Powered by Google App Engine
This is Rietveld 408576698