blob: d735aec3b496f7db5605ccc606735d89f7693115 [file] [log] [blame]
// Copyright 2019 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 "components/send_tab_to_self/target_device_info.h"
namespace send_tab_to_self {
TargetDeviceInfo::TargetDeviceInfo(
const std::string& cache_guid,
const sync_pb::SyncEnums::DeviceType device_type)
: cache_guid(cache_guid), device_type(device_type) {}
bool TargetDeviceInfo::operator==(const TargetDeviceInfo& rhs) const {
return this->cache_guid == rhs.cache_guid &&
this->device_type == rhs.device_type;
}
} // namespace send_tab_to_self