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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 40 additions and 8 deletions

View file

@ -468,6 +468,8 @@ ExtensionFunction::ResponseAction TabsSetZoomSettingsFunction::Run() {
return RespondNow(NoArguments());
}
namespace {
bool IsKillURL(const GURL& url) {
#if DCHECK_IS_ON()
// Caller should ensure that |url| is already "fixed up" by
@ -587,6 +589,8 @@ base::expected<GURL, std::string> PrepareURLForNavigation(
return url;
}
} // namespace
TabsUpdateFunction::TabsUpdateFunction() : web_contents_(nullptr) {}
ExtensionFunction::ResponseAction TabsUpdateFunction::Run() {