Index: chrome/browser/safe_browsing/client_side_detection_host_unittest.cc |
diff --git a/chrome/browser/safe_browsing/client_side_detection_host_unittest.cc b/chrome/browser/safe_browsing/client_side_detection_host_unittest.cc |
index 21d139089d8aefe552673332a3c03bca60949b53..b93b5ee7ab58c34e515b48dab86a68494901b88f 100644 |
--- a/chrome/browser/safe_browsing/client_side_detection_host_unittest.cc |
+++ b/chrome/browser/safe_browsing/client_side_detection_host_unittest.cc |
@@ -5,7 +5,6 @@ |
#include "base/file_path.h" |
#include "base/memory/ref_counted.h" |
#include "base/memory/scoped_ptr.h" |
-#include "base/task.h" |
#include "chrome/browser/safe_browsing/browser_feature_extractor.h" |
#include "chrome/browser/safe_browsing/client_side_detection_host.h" |
#include "chrome/browser/safe_browsing/client_side_detection_service.h" |
@@ -178,10 +177,8 @@ class ClientSideDetectionHostTest : public TabContentsWrapperTestHarness { |
virtual void TearDown() { |
// Delete the host object on the UI thread and release the |
// SafeBrowsingService. |
- BrowserThread::PostTask( |
- BrowserThread::UI, |
- FROM_HERE, |
- new DeleteTask<ClientSideDetectionHost>(csd_host_.release())); |
+ BrowserThread::DeleteSoon(BrowserThread::UI, FROM_HERE, |
+ csd_host_.release()); |
sb_service_ = NULL; |
message_loop_.RunAllPending(); |
TabContentsWrapperTestHarness::TearDown(); |