Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2658)

Unified Diff: chrome/browser/safe_browsing/client_side_detection_host_unittest.cc

Issue 9015021: Remove DeleteTask and convert remaining users. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix last Linux gotchas (upload attempt #2) Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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();

Powered by Google App Engine
This is Rietveld 408576698