Bug 1268313: Part 7 - Move NS_NewRunnableMethod and friends to mozilla::NewRunnableMethod. r=froydnj

This commit is contained in:
Kyle Huey
2016-04-28 14:08:25 -07:00
parent 4e4a58b922
commit e62a0823c9
237 changed files with 1046 additions and 1280 deletions

View File

@@ -1525,8 +1525,8 @@ nsresult nsCacheService::EvictEntriesInternal(nsCacheStoragePolicy storagePolicy
if (storagePolicy == nsICache::STORE_ANYWHERE) {
// if not called on main thread, dispatch the notification to the main thread to notify observers
if (!NS_IsMainThread()) {
nsCOMPtr<nsIRunnable> event = NS_NewRunnableMethod(this,
&nsCacheService::FireClearNetworkCacheStoredAnywhereNotification);
nsCOMPtr<nsIRunnable> event = NewRunnableMethod(this,
&nsCacheService::FireClearNetworkCacheStoredAnywhereNotification);
NS_DispatchToMainThread(event);
} else {
// else you're already on main thread - notify observers