Bug 1414579 - Port bug 1412048: replace NS_RUNTIMEABORT() with MOZ_CRASH(). rs=bustage-fix CLOSED TREE
authorJorg K <jorgk@jorgk.com>
Sun, 05 Nov 2017 00:31:39 +0100
changeset 29320 82337ca3ffd66f9b5205add87b23f9906f7cd7d4
parent 29319 fe6af7970776b8036ab2c66d769539f246131d68
child 29321 a7aa0ecabaddb286e6795b1d47fc33cd15622feb
push id2068
push userclokep@gmail.com
push dateMon, 13 Nov 2017 19:02:14 +0000
treeherdercomm-beta@9c7e7ce8672b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbustage-fix
bugs1414579, 1412048
Bug 1414579 - Port bug 1412048: replace NS_RUNTIMEABORT() with MOZ_CRASH(). rs=bustage-fix CLOSED TREE
calendar/base/backend/libical/calUtils.h
--- a/calendar/base/backend/libical/calUtils.h
+++ b/calendar/base/backend/libical/calUtils.h
@@ -46,17 +46,17 @@ inline nsCOMPtr<calIICSService> getICSSe
  * Gets the global timezone service.
  */
 inline nsCOMPtr<calITimezoneService> getTimezoneService() {
     nsresult rv;
     nsCOMPtr<calITimezoneService> tzs;
 
     tzs = do_GetService(CAL_TIMEZONESERVICE_CONTRACTID, &rv);
     if (NS_FAILED(rv)) {
-        NS_RUNTIMEABORT("Could not load timezone service, brace yourself and prepare for crash");
+        MOZ_CRASH("Could not load timezone service, brace yourself and prepare for crash");
     }
     return tzs;
 }
 
 /**
  * Logs an error.
  */
 nsresult logError(const nsAString& msg);
@@ -95,32 +95,32 @@ inline nsresult log(nsACString const& ms
  * Gets the "UTC" timezone.
  */
 inline nsCOMPtr<calITimezone> UTC() {
     nsresult rv;
     nsCOMPtr<calITimezone> tz;
 
     rv = getTimezoneService()->GetUTC(getter_AddRefs(tz));
     if (NS_FAILED(rv)) {
-        NS_RUNTIMEABORT("Could not load UTC timezone, brace yourself and prepare for crash");
+        MOZ_CRASH("Could not load UTC timezone, brace yourself and prepare for crash");
     }
 
     return tz;
 }
 
 /**
  * Gets the "floating" timezone
  */
 inline nsCOMPtr<calITimezone> floating() {
     nsresult rv;
     nsCOMPtr<calITimezone> tz;
 
     rv = getTimezoneService()->GetFloating(getter_AddRefs(tz));
     if (NS_FAILED(rv)) {
-        NS_RUNTIMEABORT("Could not load floating timezone, brace yourself and prepare for crash");
+        MOZ_CRASH("Could not load floating timezone, brace yourself and prepare for crash");
     }
 
     return tz;
 }
 
 /**
  * Returns the libical VTIMEZONE component, null if floating.
  *