Bug 1333002 - Fix a misleading indentation in PeerConnectionCtx.cpp. r=drno, a=jcristau
authorSylvestre Ledru <sledru@mozilla.com>
Mon, 23 Jan 2017 10:04:58 +0100
changeset 377927 ad823ff1774b9eebc6e7edab303891c4ad81309a
parent 377926 da4eb01b22b11f8daadf96db554908c2475b9c1f
child 377928 227831ce1a7b14ef60dde65fe92337bdafacbe4e
push id1419
push userjlund@mozilla.com
push dateMon, 10 Apr 2017 20:44:07 +0000
treeherdermozilla-release@5e6801b73ef6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdrno, jcristau
bugs1333002
milestone53.0a2
Bug 1333002 - Fix a misleading indentation in PeerConnectionCtx.cpp. r=drno, a=jcristau MozReview-Commit-ID: 1iSHCgsfW0a
media/webrtc/signaling/src/peerconnection/PeerConnectionCtx.cpp
--- a/media/webrtc/signaling/src/peerconnection/PeerConnectionCtx.cpp
+++ b/media/webrtc/signaling/src/peerconnection/PeerConnectionCtx.cpp
@@ -105,19 +105,20 @@ public:
     return NS_OK;
   }
 
 private:
   virtual ~PeerConnectionCtxObserver()
     {
       nsCOMPtr<nsIObserverService> observerService =
         services::GetObserverService();
-      if (observerService)
+      if (observerService) {
         observerService->RemoveObserver(this, NS_IOSERVICE_OFFLINE_STATUS_TOPIC);
         observerService->RemoveObserver(this, NS_XPCOM_SHUTDOWN_OBSERVER_ID);
+      }
     }
 };
 
 NS_IMPL_ISUPPORTS(PeerConnectionCtxObserver, nsIObserver);
 }
 
 namespace mozilla {
 
@@ -335,17 +336,17 @@ PeerConnectionCtx::EverySecondTelemetryC
   }
   MOZ_ASSERT(stsThread);
 
   nsAutoPtr<RTCStatsQueries> queries(new RTCStatsQueries);
   for (auto p = ctx->mPeerConnections.begin();
         p != ctx->mPeerConnections.end(); ++p) {
     if (p->second->HasMedia()) {
       if (!queries->append(nsAutoPtr<RTCStatsQuery>(new RTCStatsQuery(true)))) {
-	return;
+        return;
       }
       if (NS_WARN_IF(NS_FAILED(p->second->BuildStatsQuery_m(nullptr, // all tracks
                                                             queries->back())))) {
         queries->popBack();
       } else {
         MOZ_ASSERT(queries->back()->report);
       }
     }