blob: 4ae2313b2bb9287c1af54739583c75171a31b6e4 [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 "remoting/signaling/ftl_client_uuid_device_id_provider.h"
#include "base/guid.h"
namespace remoting {
FtlClientUuidDeviceIdProvider::FtlClientUuidDeviceIdProvider()
: client_uuid_(base::GenerateGUID()) {}
FtlClientUuidDeviceIdProvider::~FtlClientUuidDeviceIdProvider() = default;
ftl::DeviceId FtlClientUuidDeviceIdProvider::GetDeviceId() {
ftl::DeviceId device_id;
device_id.set_type(ftl::DeviceIdType_Type_CLIENT_UUID);
device_id.set_id(client_uuid_);
return device_id;
}
} // namespace remoting