blob: 3102fadc5ef17c0335ce0404423babf93e7f3a49 [file] [log] [blame]
// Copyright 2012 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "google_apis/gaia/gaia_auth_consumer.h"
GaiaAuthConsumer::ClientOAuthResult::ClientOAuthResult(
const std::string& new_refresh_token,
const std::string& new_access_token,
int new_expires_in_secs,
bool new_is_child_account,
bool new_is_under_advanced_protection,
bool new_is_bound_to_key)
: refresh_token(new_refresh_token),
access_token(new_access_token),
expires_in_secs(new_expires_in_secs),
is_child_account(new_is_child_account),
is_under_advanced_protection(new_is_under_advanced_protection),
is_bound_to_key(new_is_bound_to_key) {}
GaiaAuthConsumer::ClientOAuthResult::ClientOAuthResult(
const ClientOAuthResult& other) = default;
GaiaAuthConsumer::ClientOAuthResult::~ClientOAuthResult() = default;
bool GaiaAuthConsumer::ClientOAuthResult::operator==(
const ClientOAuthResult &b) const {
return refresh_token == b.refresh_token &&
access_token == b.access_token &&
expires_in_secs == b.expires_in_secs;
}