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

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: Feedback 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
« no previous file with comments | « Source/modules/credentialmanager/LocalCredential.h ('k') | Source/platform/blink_platform.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/credentialmanager/LocalCredential.cpp
diff --git a/Source/modules/credentialmanager/LocalCredential.cpp b/Source/modules/credentialmanager/LocalCredential.cpp
index b04538fda813ce760491558a3cecddc88396aec6..03dbcea512b928532979d642d42ed6d96964c887 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,13 +14,13 @@ 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))
{
}
-LocalCredential::~LocalCredential()
+const String& LocalCredential::password() const
{
+ return static_cast<PlatformLocalCredential*>(m_platformCredential.get())->password();
}
} // namespace blink
« no previous file with comments | « Source/modules/credentialmanager/LocalCredential.h ('k') | Source/platform/blink_platform.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698