Bug 1333002 - Fix a misleading indentation in PeerConnectionCtx.cpp r=jesup draft
authorSylvestre Ledru <sledru@mozilla.com>
Mon, 23 Jan 2017 10:04:58 +0100
changeset 464893 d042017b4faf06ec830a07ff0790cc03a1968dd2
parent 463681 a3978751f45108ff1ae002ecebdc0fa23fc52b84
child 543038 e63f5c6236d691fe4b5c34f44c968afbe2549506
push id42479
push userbmo:sledru@mozilla.com
push dateMon, 23 Jan 2017 09:05:47 +0000
reviewersjesup
bugs1333002
milestone53.0a1
Bug 1333002 - Fix a misleading indentation in PeerConnectionCtx.cpp r=jesup 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);
       }
     }