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

Unified Diff: Source/platform/credentialmanager/PlatformPasswordCredential.cpp

Issue 1162443006: Credential Management: Rename 'LocalCredential' to 'PasswordCredential' (1/3) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@add-type
Patch Set: Test. Created 5 years, 7 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/platform/credentialmanager/PlatformPasswordCredential.cpp
diff --git a/Source/platform/credentialmanager/PlatformPasswordCredential.cpp b/Source/platform/credentialmanager/PlatformPasswordCredential.cpp
new file mode 100644
index 0000000000000000000000000000000000000000..3c7a2fe6a0495192733b09b9df83262a02577f59
--- /dev/null
+++ b/Source/platform/credentialmanager/PlatformPasswordCredential.cpp
@@ -0,0 +1,27 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "config.h"
+#include "platform/credentialmanager/PlatformPasswordCredential.h"
+
+namespace blink {
+
+PlatformPasswordCredential* PlatformPasswordCredential::create(const String& id, const String& password, const String& name, const KURL& avatarURL)
+{
+ return new PlatformPasswordCredential(id, password, name, avatarURL);
+}
+
+PlatformPasswordCredential::PlatformPasswordCredential(const String& id, const String& password, const String& name, const KURL& avatarURL)
+ : PlatformCredential(id, name, avatarURL)
+ , m_password(password)
+{
+ setType("password");
+}
+
+PlatformPasswordCredential::~PlatformPasswordCredential()
+{
+}
+
+} // namespace blink
+
« no previous file with comments | « Source/platform/credentialmanager/PlatformPasswordCredential.h ('k') | Source/platform/exported/WebCredential.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698