The constructor Profile::OTRProfileID::OTRProfileID is private now, so
we need a way of creating an instance from Brave's TorProfileManager
that doesn't require access to Profile::OTRProfileID's private members.
Chromium change:
https://chromium.googlesource.com/chromium/src.git/+/990446325f38f9c1cdc22d6b1703aa0554089424
commit 990446325f38f9c1cdc22d6b1703aa0554089424
Author: Ramin Halavati <rhalavati@chromium.org>
Date: Mon Apr 19 12:10:37 2021 +0000
Make OTRProfileID constructor private.
OTRProfileID constructor is made private to reduce the possibility of
using duplicate ids and making MakeUnique function more visible.
OTRProfileID::CreateUniqueForTesting() is added to be used as a
shorthand in tests since we don't need specific id prefixes in tests.
This CL does not change any behavior.
Bug: 1196661