fix: misc-use-internal-linkage warnings (#44871)
* refactor: fix misc-use-internal-linkage warnings move impl functions into anonymous namespace so that they're not visible to other compilation units
This commit is contained in:
parent
f22baeb670
commit
0fe5035395
9 changed files with 54 additions and 14 deletions
|
@ -100,6 +100,8 @@ using FrameTreeNodeIdMap = std::unordered_map<content::FrameTreeNodeId,
|
|||
using FrameTokenMap =
|
||||
std::map<content::GlobalRenderFrameHostToken, WebFrameMain*>;
|
||||
|
||||
namespace {
|
||||
|
||||
FrameTreeNodeIdMap& GetFrameTreeNodeIdMap() {
|
||||
static base::NoDestructor<FrameTreeNodeIdMap> instance;
|
||||
return *instance;
|
||||
|
@ -109,6 +111,8 @@ FrameTokenMap& GetFrameTokenMap() {
|
|||
return *instance;
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
||||
// static
|
||||
WebFrameMain* WebFrameMain::FromFrameTreeNodeId(
|
||||
content::FrameTreeNodeId frame_tree_node_id) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue