Bug 1381627 - EverySecondTelemetryCallback target r=billm,jib
authorNico Grunbaum
Thu, 17 Aug 2017 17:39:39 -0700
changeset 378352 ac5161ac285d66c7d947fe4e4b848806728a5546
parent 378351 a2d3d62c0df7627494702ae7c19cca84f596b72f
child 378353 feec5f3a726c7fa27c682822527c0063cf1a98ab
push id32428
push userarchaeopteryx@coole-files.de
push dateSat, 02 Sep 2017 08:52:28 +0000
treeherdermozilla-central@b01a7e57425b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbillm, jib
bugs1381627
milestone57.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1381627 - EverySecondTelemetryCallback target r=billm,jib MozReview-Commit-ID: 2noZLkM4ZjO
media/webrtc/signaling/src/peerconnection/PeerConnectionCtx.cpp
--- a/media/webrtc/signaling/src/peerconnection/PeerConnectionCtx.cpp
+++ b/media/webrtc/signaling/src/peerconnection/PeerConnectionCtx.cpp
@@ -363,17 +363,17 @@ PeerConnectionCtx::UpdateNetworkState(bo
   }
 }
 
 nsresult PeerConnectionCtx::Initialize() {
   initGMP();
 
   mTelemetryTimer = do_CreateInstance(NS_TIMER_CONTRACTID);
   MOZ_ASSERT(mTelemetryTimer);
-  nsresult rv = mTelemetryTimer->SetTarget(gMainThread);
+  nsresult rv = mTelemetryTimer->SetTarget(SystemGroup::EventTargetFor(TaskCategory::Other));
   NS_ENSURE_SUCCESS(rv, rv);
   mTelemetryTimer->InitWithNamedFuncCallback(EverySecondTelemetryCallback_m, this, 1000,
                                              nsITimer::TYPE_REPEATING_PRECISE_CAN_SKIP,
                                              "EverySecondTelemetryCallback_m");
 
   if (XRE_IsContentProcess()) {
     WebrtcGlobalChild::Create();
   }