fix: misc-use-internal-linkage warnings (#44872)
* 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
5ca3f950e9
commit
a92b3944a1
9 changed files with 54 additions and 14 deletions
|
@ -87,6 +87,8 @@ void ElectronExtensionSystem::InitForRegularProfile(bool extensions_enabled) {
|
|||
management_policy_ = std::make_unique<ManagementPolicy>();
|
||||
}
|
||||
|
||||
namespace {
|
||||
|
||||
std::unique_ptr<base::Value::Dict> ParseManifest(
|
||||
const std::string_view manifest_contents) {
|
||||
JSONStringValueDeserializer deserializer(manifest_contents);
|
||||
|
@ -100,6 +102,8 @@ std::unique_ptr<base::Value::Dict> ParseManifest(
|
|||
return std::make_unique<base::Value::Dict>(std::move(*manifest).TakeDict());
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
||||
void ElectronExtensionSystem::LoadComponentExtensions() {
|
||||
std::string utf8_error;
|
||||
#if BUILDFLAG(ENABLE_PDF_VIEWER)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue