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

Unified Diff: chrome/browser/profiles/profile_io_data.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
« no previous file with comments | « chrome/browser/process_singleton_linux.cc ('k') | chrome/browser/protector/protector.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/profiles/profile_io_data.cc
diff --git a/chrome/browser/profiles/profile_io_data.cc b/chrome/browser/profiles/profile_io_data.cc
index e017df42f81a17be5ab9bfc759ee95ad29b83567..f853438a477139e7a06b2daefe83ded09791ff93 100644
--- a/chrome/browser/profiles/profile_io_data.cc
+++ b/chrome/browser/profiles/profile_io_data.cc
@@ -14,7 +14,6 @@
#include "base/logging.h"
#include "base/stl_util.h"
#include "base/string_number_conversions.h"
-#include "base/task.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/content_settings/cookie_settings.h"
#include "chrome/browser/content_settings/host_content_settings_map.h"
@@ -555,8 +554,7 @@ void ProfileIOData::ShutdownOnUIThread() {
&ResourceDispatcherHost::CancelRequestsForContext,
base::Unretained(g_browser_process->resource_dispatcher_host()),
&resource_context_));
- bool posted = BrowserThread::PostTask(BrowserThread::IO, FROM_HERE,
- new DeleteTask<ProfileIOData>(this));
+ bool posted = BrowserThread::DeleteSoon(BrowserThread::IO, FROM_HERE, this);
if (!posted)
delete this;
}
« no previous file with comments | « chrome/browser/process_singleton_linux.cc ('k') | chrome/browser/protector/protector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698