Bug 1547047 - Annotate argument names for clarity. r=dom-storage-reviewers,janv

Differential Revision: https://phabricator.services.mozilla.com/D197598
This commit is contained in:
Jari Jalkanen 2024-02-27 09:10:31 +00:00
parent ae4f962305
commit bd5da96c6d
2 changed files with 7 additions and 4 deletions

View file

@ -12247,8 +12247,9 @@ nsresult QuotaClient::GetUsageForOriginInternal(
// If this fails, it probably means we are in a serious situation.
// e.g. Filesystem corruption. Will handle this in bug 1521541.
QM_TRY(MOZ_TO_RESULT(RemoveDatabaseFilesAndDirectory(
*directory, subdirNameBase, nullptr, aPersistenceType,
aOriginMetadata, u""_ns)),
*directory, subdirNameBase, /* aQuotaManager */ nullptr,
aPersistenceType, aOriginMetadata,
/* aDatabaseName */ u""_ns)),
Err(NS_ERROR_UNEXPECTED));
databaseFilenames.Remove(subdirNameBase);

View file

@ -2861,8 +2861,10 @@ nsresult UpgradeFileIdsFunction::Init(nsIFile* aFMDirectory,
// purpose is to store file ids without adding more complexity or code
// duplication.
auto fileManager = MakeSafeRefPtr<DatabaseFileManager>(
PERSISTENCE_TYPE_INVALID, quota::OriginMetadata{}, u""_ns, ""_ns, false,
false);
PERSISTENCE_TYPE_INVALID, quota::OriginMetadata{},
/* aDatabaseName */ u""_ns, /* aDatabaseID */ ""_ns,
/* aEnforcingQuota */ false,
/* aIsInPrivateBrowsingMode */ false);
nsresult rv = fileManager->Init(aFMDirectory, aConnection);
if (NS_WARN_IF(NS_FAILED(rv))) {