Bug 1363877 - Label PredictorLearnRunnable with SystemGroup (r=hurley)
authorBill McCloskey <billm@mozilla.com>
Wed, 10 May 2017 12:32:01 -0700
changeset 358803 4c3e0a17d46735cb24d7dbf9f96c695535c2ae09
parent 358802 75c5e8d20bef8ec67f5ef445ad78996cfaa99216
child 358804 e062bbfde21585b49d7d9e25186481189658ea5b
push id90395
push userwmccloskey@mozilla.com
push dateWed, 17 May 2017 18:47:54 +0000
treeherdermozilla-inbound@3aa433b56b2d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewershurley
bugs1363877
milestone55.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 1363877 - Label PredictorLearnRunnable with SystemGroup (r=hurley) MozReview-Commit-ID: XPGp0226kb
netwerk/base/Predictor.cpp
--- a/netwerk/base/Predictor.cpp
+++ b/netwerk/base/Predictor.cpp
@@ -1545,17 +1545,19 @@ Predictor::LearnNative(nsIURI *targetURI
 
   if (IsNeckoChild()) {
     MOZ_DIAGNOSTIC_ASSERT(gNeckoChild);
 
     PREDICTOR_LOG(("    called on child process"));
 
     RefPtr<PredictorLearnRunnable> runnable = new PredictorLearnRunnable(
       targetURI, sourceURI, reason, originAttributes);
-    NS_DispatchToMainThread(runnable);
+    SystemGroup::Dispatch("PredictorLearnRunnable",
+                          TaskCategory::Other,
+                          runnable.forget());
 
     return NS_OK;
   }
 
   PREDICTOR_LOG(("    called on parent process"));
 
   if (!mInitialized) {
     PREDICTOR_LOG(("    not initialized"));