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; |
} |