Bug 1270631 - Port bug 1268313 part 7 to c-c [Move NS_NewRunnableMethod to mozilla::NewRunnableMethod]. r=rkent
authorRichard Marti <richard.marti@gmail.com>
Thu, 05 May 2016 22:31:44 +0200
changeset 22019 6a95caad527bd92f9bec4e8f541595bf82fd49b5
parent 22018 24b91c024a0492cde705dd4591c1feb86d4ef154
child 22020 6e2d7d78b4f91835d9c1fcf9d06d62cdfacf05a7
push id1745
push userclokep@gmail.com
push dateMon, 06 Jun 2016 19:53:03 +0000
treeherdercomm-aurora@3ad3af1478aa [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersrkent
bugs1270631, 1268313
Bug 1270631 - Port bug 1268313 part 7 to c-c [Move NS_NewRunnableMethod to mozilla::NewRunnableMethod]. r=rkent
mailnews/imap/src/nsSyncRunnableHelpers.cpp
--- a/mailnews/imap/src/nsSyncRunnableHelpers.cpp
+++ b/mailnews/imap/src/nsSyncRunnableHelpers.cpp
@@ -488,17 +488,17 @@ bool OAuth2ThreadHelper::SupportsOAuth2(
   if (NS_IsMainThread())
   {
     MonitorAutoUnlock lockGuard(mMonitor);
     Init();
   }
   else
   {
     nsCOMPtr<nsIRunnable> runInit =
-      NS_NewRunnableMethod(this, &OAuth2ThreadHelper::Init);
+      NewRunnableMethod(this, &OAuth2ThreadHelper::Init);
     NS_DispatchToMainThread(runInit);
     mMonitor.Wait();
   }
 
   // After synchronously initializing, if we didn't get an object, then we don't
   // support XOAuth2.
   return mOAuth2Support != nullptr;
 }
@@ -511,17 +511,17 @@ void OAuth2ThreadHelper::GetXOAuth2Strin
   // issues.
   MonitorAutoLock lockGuard(mMonitor);
 
   // Umm... what are you trying to do?
   if (!mOAuth2Support)
     return;
 
   nsCOMPtr<nsIRunnable> runInit =
-    NS_NewRunnableMethod(this, &OAuth2ThreadHelper::Connect);
+    NewRunnableMethod(this, &OAuth2ThreadHelper::Connect);
   NS_DispatchToMainThread(runInit);
   mMonitor.Wait();
 
   // Now we either have the string, or we failed (in which case the string is
   // empty).
   base64Str = mOAuth2String;
 }