| 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 6d431e1a114edaadd115bdc6df4864895a231b00..8f364867eb8d92b156ada0d45a856442b444a145 100644
|
| --- a/components/password_manager/core/common/credential_manager_types.cc
|
| +++ b/components/password_manager/core/common/credential_manager_types.cc
|
| @@ -9,16 +9,8 @@
|
|
|
| namespace password_manager {
|
|
|
| -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);
|
| +std::ostream& operator<<(std::ostream& out, CredentialType type) {
|
| + return out << static_cast<int>(type);
|
| }
|
|
|
| CredentialInfo::CredentialInfo() : type(CredentialType::CREDENTIAL_TYPE_EMPTY) {
|
|
|