Infobar material design refresh: bg color
[chromium-blink-merge.git] / ios / web / web_state / credential.cc
blob31812742e89917bba7615dee9a42f7aac2a695c8
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
3 // found in the LICENSE file.
5 #include "ios/web/public/web_state/credential.h"
7 namespace web {
9 Credential::Credential() : type(CREDENTIAL_TYPE_EMPTY) {
12 Credential::~Credential() = default;
14 bool CredentialsEqual(const web::Credential& credential1,
15 const web::Credential& credential2) {
16 return credential1.type == credential2.type &&
17 credential1.id == credential2.id &&
18 credential1.name == credential2.name &&
19 credential1.avatar_url == credential2.avatar_url &&
20 credential1.password == credential2.password &&
21 credential1.federation_url == credential2.federation_url;
24 } // namespace web