| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "ios/web/public/web_state/credential.h" | 5 #include "ios/web/public/web_state/credential.h" |
| 6 | 6 |
| 7 namespace web { | 7 namespace web { |
| 8 | 8 |
| 9 Credential::Credential() : type(CREDENTIAL_TYPE_EMPTY) { | 9 Credential::Credential() : type(CREDENTIAL_TYPE_EMPTY) { |
| 10 } | 10 } |
| 11 | 11 |
| 12 Credential::~Credential() = default; | 12 Credential::~Credential() = default; |
| 13 | 13 |
| 14 bool CredentialsEqual(const web::Credential& credential1, | 14 bool CredentialsEqual(const web::Credential& credential1, |
| 15 const web::Credential& credential2) { | 15 const web::Credential& credential2) { |
| 16 return credential1.type == credential2.type && | 16 return credential1.type == credential2.type && |
| 17 credential1.id == credential2.id && | 17 credential1.id == credential2.id && |
| 18 credential1.name == credential2.name && | 18 credential1.name == credential2.name && |
| 19 credential1.avatar_url == credential2.avatar_url && | 19 credential1.avatar_url == credential2.avatar_url && |
| 20 credential1.password == credential2.password && | 20 credential1.password == credential2.password && |
| 21 credential1.federation_url == credential2.federation_url; | 21 credential1.federation_origin.Serialize() == |
| 22 credential2.federation_origin.Serialize(); |
| 22 } | 23 } |
| 23 | 24 |
| 24 } // namespace web | 25 } // namespace web |
| OLD | NEW |