| Index: Source/modules/credentialmanager/LocalCredential.cpp
|
| diff --git a/Source/modules/credentialmanager/LocalCredential.cpp b/Source/modules/credentialmanager/LocalCredential.cpp
|
| index 7b61e4b98a09a07475a3eb54afdca18be6176857..d69d1f5a20dcbaa8bd37926716da9183adbe00e3 100644
|
| --- a/Source/modules/credentialmanager/LocalCredential.cpp
|
| +++ b/Source/modules/credentialmanager/LocalCredential.cpp
|
| @@ -7,9 +7,16 @@
|
|
|
| #include "bindings/core/v8/ExceptionState.h"
|
| #include "platform/credentialmanager/PlatformLocalCredential.h"
|
| +#include "public/platform/WebCredential.h"
|
| +#include "public/platform/WebLocalCredential.h"
|
|
|
| namespace blink {
|
|
|
| +LocalCredential* LocalCredential::create(WebLocalCredential* webLocalCredential)
|
| +{
|
| + return new LocalCredential(webLocalCredential);
|
| +}
|
| +
|
| LocalCredential* LocalCredential::create(const String& id, const String& name, const String& avatar, const String& password, ExceptionState& exceptionState)
|
| {
|
| KURL avatarURL = parseStringAsURL(avatar, exceptionState);
|
| @@ -18,6 +25,11 @@ LocalCredential* LocalCredential::create(const String& id, const String& name, c
|
| return new LocalCredential(id, name, avatarURL, password);
|
| }
|
|
|
| +LocalCredential::LocalCredential(WebLocalCredential* webLocalCredential)
|
| + : Credential(webLocalCredential->platformCredential())
|
| +{
|
| +}
|
| +
|
| LocalCredential::LocalCredential(const String& id, const String& name, const KURL& avatar, const String& password)
|
| : Credential(PlatformLocalCredential::create(id, name, avatar, password))
|
| {
|
|
|