Index: chrome/browser/extensions/extension_service.cc |
diff --git a/chrome/browser/extensions/extension_service.cc b/chrome/browser/extensions/extension_service.cc |
index 30a3c43f4e616c2b9a5079f9f0a0a2167b5577d8..c5dc956e31a1771d281ea809a1fd7892470a8bb0 100644 |
--- a/chrome/browser/extensions/extension_service.cc |
+++ b/chrome/browser/extensions/extension_service.cc |
@@ -21,7 +21,6 @@ |
#include "base/string_number_conversions.h" |
#include "base/string_util.h" |
#include "base/stringprintf.h" |
-#include "base/task.h" |
#include "base/threading/thread_restrictions.h" |
#include "base/time.h" |
#include "base/utf_string_conversions.h" |
@@ -487,9 +486,7 @@ ExtensionService::~ExtensionService() { |
// provide the IO thread message loop needed for those sockets to do their |
// job (including destroying themselves at shutdown). |
DCHECK(BrowserThread::IsMessageLoopValid(BrowserThread::IO)); |
- BrowserThread::PostTask( |
- BrowserThread::IO, FROM_HERE, |
- new DeleteTask<extensions::SocketController>(socket_controller_)); |
+ BrowserThread::DeleteSoon(BrowserThread::IO, FROM_HERE, socket_controller_); |
} |
} |