refactor: move impl functions into private namespace (#43372)

This commit is contained in:
Charles Kerr
2024-08-21 15:26:06 -05:00
committed by GitHub
parent f366caac84
commit 4fbf18a021
10 changed files with 40 additions and 8 deletions

View File

@@ -37,6 +37,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()};
@@ -81,6 +83,8 @@ base::Value PortInfoToValue(const device::mojom::SerialPortInfo& port) {
return base::Value(std::move(value));
}
} // namespace
SerialChooserContext::SerialChooserContext(ElectronBrowserContext* context)
: browser_context_(context) {}