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

Unified Diff: Source/platform/exported/WebCredential.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/exported/WebCredential.cpp
diff --git a/Source/platform/exported/WebCredential.cpp b/Source/platform/exported/WebCredential.cpp
index d4e678e30dd24fc7bdaf851e825e03c18b2cfb90..2289b751005024a21fbfdd97bfaa5228fa4fd707 100644
--- a/Source/platform/exported/WebCredential.cpp
+++ b/Source/platform/exported/WebCredential.cpp
@@ -7,15 +7,15 @@
#include "platform/credentialmanager/PlatformCredential.h"
#include "public/platform/WebFederatedCredential.h"
-#include "public/platform/WebLocalCredential.h"
+#include "public/platform/WebPasswordCredential.h"
namespace blink {
WebCredential WebCredential::create(PlatformCredential* credential)
{
- if (credential->isLocal()) {
- WebLocalCredential local(credential);
- return local;
+ if (credential->isPassword()) {
+ WebPasswordCredential password(credential);
+ return password;
}
if (credential->isFederated()) {
@@ -78,9 +78,9 @@ WebString WebCredential::type() const
return m_platformCredential->type();
}
-bool WebCredential::isLocalCredential() const
+bool WebCredential::isPasswordCredential() const
{
- return m_platformCredential->isLocal();
+ return m_platformCredential->isPassword();
}
bool WebCredential::isFederatedCredential() const
« no previous file with comments | « Source/platform/credentialmanager/PlatformPasswordCredential.cpp ('k') | Source/platform/exported/WebLocalCredential.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698