Bug 1141689 - use services::GetObserverService more; r=ehsan

This commit is contained in:
Nathan Froyd
2014-04-29 13:31:06 -04:00
parent feff578a48
commit c3c6b1facf
10 changed files with 26 additions and 27 deletions

View File

@@ -1291,8 +1291,7 @@ nsMemoryReporterManager::GetReportsExtended(
// Request memory reports from child processes. We do this *before*
// collecting reports for this process so each process can collect
// reports in parallel.
nsCOMPtr<nsIObserverService> obs =
do_GetService("@mozilla.org/observer-service;1");
nsCOMPtr<nsIObserverService> obs = services::GetObserverService();
NS_ENSURE_STATE(obs);
nsPrintfCString genStr("generation=%x anonymize=%d minimize=%d DMDident=",