| 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 f738d6acc5f12c7b27ca15b802dda453a68ad247..ed79cfe61ff52871a165ef77b80ba56e2b4ca8f9 100644
|
| --- a/third_party/WebKit/Source/modules/credentialmanager/PasswordCredential.cpp
|
| +++ b/third_party/WebKit/Source/modules/credentialmanager/PasswordCredential.cpp
|
| @@ -88,8 +88,9 @@ PasswordCredential* PasswordCredential::create(HTMLFormElement* form,
|
| return nullptr;
|
| ASSERT(credential);
|
|
|
| - // After creating the Credential, populate its 'additionalData', 'idName', and 'passwordName' attributes.
|
| - // If the form's 'enctype' is anything other than multipart, generate a URLSearchParams using the
|
| + // After creating the Credential, populate its 'additionalData', 'idName', and
|
| + // 'passwordName' attributes. If the form's 'enctype' is anything other than
|
| + // multipart, generate a URLSearchParams using the
|
| // data in |formData|.
|
| credential->setIdName(idName);
|
| credential->setPasswordName(passwordName);
|
| @@ -128,7 +129,8 @@ PasswordCredential::PasswordCredential(const String& id,
|
| PassRefPtr<EncodedFormData> PasswordCredential::encodeFormData(
|
| String& contentType) const {
|
| if (m_additionalData.isURLSearchParams()) {
|
| - // If |additionalData| is a 'URLSearchParams' object, build a urlencoded response.
|
| + // If |additionalData| is a 'URLSearchParams' object, build a urlencoded
|
| + // response.
|
| URLSearchParams* params = URLSearchParams::create(URLSearchParamsInit());
|
| URLSearchParams* additionalData = m_additionalData.getAsURLSearchParams();
|
| for (const auto& param : additionalData->params()) {
|
|
|