chore: used nested namespaces (#34737)

This commit is contained in:
David Sanders 2022-06-29 12:55:47 -07:00 committed by GitHub
parent 0d4e417594
commit 5d120359f6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
122 changed files with 246 additions and 738 deletions

View file

@ -39,9 +39,7 @@
#include "device/fido/win/webauthn_api.h"
#endif // BUILDFLAG(IS_WIN)
namespace extensions {
namespace api {
namespace extensions::api {
namespace {
@ -307,5 +305,4 @@ CryptotokenPrivateRecordSignRequestFunction::Run() {
return RespondNow(NoArguments());
}
} // namespace api
} // namespace extensions
} // namespace extensions::api

View file

@ -14,8 +14,7 @@ class PrefRegistrySyncable;
// Implementations for chrome.cryptotokenPrivate API functions.
namespace extensions {
namespace api {
namespace extensions::api {
// void CryptotokenRegisterProfilePrefs(
// user_prefs::PrefRegistrySyncable* registry);
@ -80,7 +79,6 @@ class CryptotokenPrivateRecordSignRequestFunction : public ExtensionFunction {
ResponseAction Run() override;
};
} // namespace api
} // namespace extensions
} // namespace extensions::api
#endif // ELECTRON_SHELL_BROWSER_EXTENSIONS_API_CRYPTOTOKEN_PRIVATE_CRYPTOTOKEN_PRIVATE_API_H_

View file

@ -7,8 +7,7 @@
#include "extensions/browser/updater/update_service_factory.h"
#include "shell/browser/extensions/electron_extension_system_factory.h"
namespace extensions {
namespace electron {
namespace extensions::electron {
void EnsureBrowserContextKeyedServiceFactoriesBuilt() {
// TODO(rockot): Remove this once UpdateService is supported across all
@ -18,5 +17,4 @@ void EnsureBrowserContextKeyedServiceFactoriesBuilt() {
ElectronExtensionSystemFactory::GetInstance();
}
} // namespace electron
} // namespace extensions
} // namespace extensions::electron

View file

@ -5,14 +5,12 @@
#ifndef ELECTRON_SHELL_BROWSER_EXTENSIONS_ELECTRON_BROWSER_CONTEXT_KEYED_SERVICE_FACTORIES_H_
#define ELECTRON_SHELL_BROWSER_EXTENSIONS_ELECTRON_BROWSER_CONTEXT_KEYED_SERVICE_FACTORIES_H_
namespace extensions {
namespace electron {
namespace extensions::electron {
// Ensures the existence of any BrowserContextKeyedServiceFactory provided by
// the core extensions code.
void EnsureBrowserContextKeyedServiceFactoriesBuilt();
} // namespace electron
} // namespace extensions
} // namespace extensions::electron
#endif // ELECTRON_SHELL_BROWSER_EXTENSIONS_ELECTRON_BROWSER_CONTEXT_KEYED_SERVICE_FACTORIES_H_