summaryrefslogtreecommitdiffstats
path: root/netwerk/cookie/CookieStorage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'netwerk/cookie/CookieStorage.cpp')
-rw-r--r--netwerk/cookie/CookieStorage.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/netwerk/cookie/CookieStorage.cpp b/netwerk/cookie/CookieStorage.cpp
index fd0af6129b..ef4af82b64 100644
--- a/netwerk/cookie/CookieStorage.cpp
+++ b/netwerk/cookie/CookieStorage.cpp
@@ -669,8 +669,8 @@ void CookieStorage::AddCookie(nsIConsoleReportCollector* aCRC,
}
uint32_t purgedLength = 0;
purgedList->GetLength(&purgedLength);
- mozilla::glean::networking::cookie_purge_entry_max.AccumulateSamples(
- {purgedLength});
+ mozilla::glean::networking::cookie_purge_entry_max.AccumulateSingleSample(
+ purgedLength);
} else if (mCookieCount >= ADD_TEN_PERCENT(mMaxNumberOfCookies)) {
int64_t maxAge = aCurrentTimeInUsec - mCookieOldestTime;
@@ -687,8 +687,8 @@ void CookieStorage::AddCookie(nsIConsoleReportCollector* aCRC,
mCookiePurgeAge);
uint32_t purgedLength = 0;
purgedList->GetLength(&purgedLength);
- mozilla::glean::networking::cookie_purge_max.AccumulateSamples(
- {purgedLength});
+ mozilla::glean::networking::cookie_purge_max.AccumulateSingleSample(
+ purgedLength);
}
}
}