Bug 1268313: Part 7 - Move NS_NewRunnableMethod and friends to mozilla::NewRunnableMethod. r=froydnj
This commit is contained in:
4
netwerk/cache/nsCacheService.cpp
vendored
4
netwerk/cache/nsCacheService.cpp
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user