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

Unified Diff: chrome/browser/safe_browsing/client_side_detection_host.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.cc
diff --git a/chrome/browser/safe_browsing/client_side_detection_host.cc b/chrome/browser/safe_browsing/client_side_detection_host.cc
index 0614cfccd90a986f4374b9737db1af17ba91c811..d5617f8b042571516383a10d843ee9c41d870fa2 100644
--- a/chrome/browser/safe_browsing/client_side_detection_host.cc
+++ b/chrome/browser/safe_browsing/client_side_detection_host.cc
@@ -9,8 +9,8 @@
#include "base/logging.h"
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
+#include "base/message_loop_helpers.h"
#include "base/metrics/histogram.h"
-#include "base/task.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/prefs/pref_service.h"
#include "chrome/browser/profiles/profile.h"
@@ -238,13 +238,13 @@ class CsdClient : public SafeBrowsingService::Client {
virtual void OnBlockingPageComplete(bool proceed) OVERRIDE {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
// Delete this on the UI thread since it was created there.
- BrowserThread::PostTask(BrowserThread::UI,
- FROM_HERE,
- new DeleteTask<CsdClient>(this));
+ BrowserThread::DeleteSoon(BrowserThread::UI,
+ FROM_HERE,
+ this);
}
private:
- friend class DeleteTask<CsdClient>; // Calls the private destructor.
+ friend class base::DeleteHelper<CsdClient>; // Calls the private destructor.
// We're taking care of deleting this object. No-one else should delete
// this object.

Powered by Google App Engine
This is Rietveld 408576698