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

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

Issue 457683002: Credential Manager: Add platform-exposed Credential objects. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Strings. Created 6 years, 4 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 b04538fda813ce760491558a3cecddc88396aec6..9bfb6536ef25a5f13af990c96b258c65a8b9d1c3 100644
--- a/Source/modules/credentialmanager/LocalCredential.cpp
+++ b/Source/modules/credentialmanager/LocalCredential.cpp
@@ -4,6 +4,7 @@
#include "config.h"
#include "modules/credentialmanager/LocalCredential.h"
+#include "platform/credentialmanager/PlatformLocalCredential.h"
namespace blink {
@@ -13,11 +14,15 @@ LocalCredential* LocalCredential::create(const String& id, const String& name, c
}
LocalCredential::LocalCredential(const String& id, const String& name, const String& avatarURL, const String& password)
- : Credential(id, name, avatarURL)
- , m_password(password)
+ : Credential(PlatformLocalCredential::create(id, name, avatarURL, password))
{
}
+const String& LocalCredential::password() const
+{
+ return static_cast<PlatformLocalCredential*>(m_private.get())->password();
+}
+
LocalCredential::~LocalCredential()
{
}

Powered by Google App Engine
This is Rietveld 408576698