blob: ac710a8013ba337edc776efa28e4594ef9866451 [file] [log] [blame]
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ios/web/public/web_state/credential.h"
namespace web {
Credential::Credential() : type(CREDENTIAL_TYPE_EMPTY) {
}
Credential::Credential(const Credential& other) = default;
Credential::~Credential() = default;
bool CredentialsEqual(const web::Credential& credential1,
const web::Credential& credential2) {
return credential1.type == credential2.type &&
credential1.id == credential2.id &&
credential1.name == credential2.name &&
credential1.avatar_url == credential2.avatar_url &&
credential1.password == credential2.password &&
credential1.federation_origin.Serialize() ==
credential2.federation_origin.Serialize();
}
} // namespace web