Bug 993734: Stop pretending that the observer service is threadsafe. r=bsmedberg

This commit is contained in:
Kyle Huey 2014-04-14 12:04:26 -07:00
Родитель d6377e31fc
Коммит 1af98f208a
2 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -222,7 +222,7 @@ nsObserverService::Create(nsISupports* outer, const nsIID& aIID, void* *aInstanc
#define NS_ENSURE_VALIDCALL \
if (!NS_IsMainThread()) { \
NS_ERROR("Using observer service off the main thread!"); \
MOZ_CRASH("Using observer service off the main thread!"); \
return NS_ERROR_UNEXPECTED; \
} \
if (mShuttingDown) { \

Просмотреть файл

@ -27,7 +27,7 @@ public:
nsObserverService();
NS_DECL_THREADSAFE_ISUPPORTS
NS_DECL_ISUPPORTS
NS_DECL_NSIOBSERVERSERVICE
NS_DECL_NSIMEMORYREPORTER