forked from mirrors/gecko-dev
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:
parent
ae4f962305
commit
bd5da96c6d
2 changed files with 7 additions and 4 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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))) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue