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

Unified Diff: Source/modules/credentialmanager/LocalCredential.cpp

Issue 645023005: Credential Manager: Add a 'formData' property to LocalCredential. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git/+/reordering-arguments
Patch Set: Created 6 years, 2 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: Source/modules/credentialmanager/LocalCredential.cpp
diff --git a/Source/modules/credentialmanager/LocalCredential.cpp b/Source/modules/credentialmanager/LocalCredential.cpp
index 3dc28eb6b34f476a65331dfbab081e34a0b9f639..d078d9dc003f709d667303711005c14b74838674 100644
--- a/Source/modules/credentialmanager/LocalCredential.cpp
+++ b/Source/modules/credentialmanager/LocalCredential.cpp
@@ -32,7 +32,10 @@ LocalCredential::LocalCredential(WebLocalCredential* webLocalCredential)
LocalCredential::LocalCredential(const String& id, const String& password, const String& name, const KURL& avatar)
: Credential(PlatformLocalCredential::create(id, password, name, avatar))
+ , m_formData(DOMFormData::create())
{
+ m_formData->append("username", id);
+ m_formData->append("password", password);
}
const String& LocalCredential::password() const
@@ -40,4 +43,10 @@ const String& LocalCredential::password() const
return static_cast<PlatformLocalCredential*>(m_platformCredential.get())->password();
}
+void LocalCredential::trace(Visitor* visitor)
+{
+ Credential::trace(visitor);
haraken 2014/10/20 08:16:03 We normally make this a tail call.
Mike West 2014/10/20 09:47:38 Done.
+ visitor->trace(m_formData);
+}
+
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698