Bug 1404198: Part 2b - Switch to NS_NewTimer* in xpcom. r=njn
MozReview-Commit-ID: BEtHEpOmT1E
This commit is contained in:
@@ -1736,13 +1736,9 @@ nsMemoryReporterManager::StartGettingReports()
|
||||
}
|
||||
|
||||
if (!s->mChildrenPending.IsEmpty()) {
|
||||
nsCOMPtr<nsITimer> timer = do_CreateInstance(NS_TIMER_CONTRACTID);
|
||||
// Don't use NS_ENSURE_* here; can't return until the report is finished.
|
||||
if (NS_WARN_IF(!timer)) {
|
||||
FinishReporting();
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
rv = timer->InitWithNamedFuncCallback(
|
||||
nsCOMPtr<nsITimer> timer;
|
||||
rv = NS_NewTimerWithFuncCallback(
|
||||
getter_AddRefs(timer),
|
||||
TimeoutCallback,
|
||||
this,
|
||||
kTimeoutLengthMS,
|
||||
|
||||
Reference in New Issue
Block a user