Skip to content
Snippets Groups Projects
Unverified Commit 64096e59 authored by trop[bot]'s avatar trop[bot] Committed by GitHub
Browse files

refactor: move into unnamed namespace: EncodeToken()


refactor: move into unnamed namespace: PortInfoToValue()

Co-authored-by: default avatarCharles Kerr <charles@charleskerr.com>
parent 166c9734
No related merge requests found
......@@ -36,6 +36,8 @@ constexpr char kUsbDriverKey[] = "usb_driver";
#endif // BUILDFLAG(IS_MAC)
#endif // BUILDFLAG(IS_WIN)
namespace {
std::string EncodeToken(const base::UnguessableToken& token) {
const uint64_t data[2] = {token.GetHighForSerialization(),
token.GetLowForSerialization()};
......@@ -80,6 +82,8 @@ base::Value PortInfoToValue(const device::mojom::SerialPortInfo& port) {
return base::Value(std::move(value));
}
} // namespace
SerialChooserContext::SerialChooserContext(ElectronBrowserContext* context)
: browser_context_(context) {}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment