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

Unified Diff: components/password_manager/core/common/credential_manager_types.cc

Issue 1762603002: Switch components/password_manager code from IPC messages to Mojo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase only Created 4 years, 8 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: components/password_manager/core/common/credential_manager_types.cc
diff --git a/components/password_manager/core/common/credential_manager_types.cc b/components/password_manager/core/common/credential_manager_types.cc
index 8f364867eb8d92b156ada0d45a856442b444a145..6d431e1a114edaadd115bdc6df4864895a231b00 100644
--- a/components/password_manager/core/common/credential_manager_types.cc
+++ b/components/password_manager/core/common/credential_manager_types.cc
@@ -9,8 +9,16 @@
namespace password_manager {
-std::ostream& operator<<(std::ostream& out, CredentialType type) {
- return out << static_cast<int>(type);
+std::ostream& operator<<(std::ostream& os, CredentialType value) {
+ switch (value) {
+ case CredentialType::CREDENTIAL_TYPE_EMPTY:
+ return os << "CredentialType::CREDENTIAL_TYPE_EMPTY";
+ case CredentialType::CREDENTIAL_TYPE_PASSWORD:
+ return os << "CredentialType::CREDENTIAL_TYPE_PASSWORD";
+ case CredentialType::CREDENTIAL_TYPE_FEDERATED:
+ return os << "CredentialType::CREDENTIAL_TYPE_FEDERATED";
+ }
+ return os << "Unknown CredentialType value: " << static_cast<int32_t>(value);
}
CredentialInfo::CredentialInfo() : type(CredentialType::CREDENTIAL_TYPE_EMPTY) {
« no previous file with comments | « components/password_manager/core/common/credential_manager_types.h ('k') | content/content_common_mojo_bindings.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698