summaryrefslogtreecommitdiffstats
path: root/chrome/browser/browsing_data_remover.cc
diff options
context:
space:
mode:
authorjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-03 02:27:01 +0000
committerjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-03 02:27:01 +0000
commit0d3dc8e2804b0adc4f572944db027929e2b5af5a (patch)
treeefe4a3ecde226002698017cceba2952b8979a66f /chrome/browser/browsing_data_remover.cc
parent8dc291a4dbeed088fbdc36115b250c5f83d3edde (diff)
downloadchromium_src-0d3dc8e2804b0adc4f572944db027929e2b5af5a.zip
chromium_src-0d3dc8e2804b0adc4f572944db027929e2b5af5a.tar.gz
chromium_src-0d3dc8e2804b0adc4f572944db027929e2b5af5a.tar.bz2
Fifth patch in getting rid of caching MessageLoop pointers.
BUG=25354 Review URL: http://codereview.chromium.org/345037 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30790 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browsing_data_remover.cc')
-rw-r--r--chrome/browser/browsing_data_remover.cc11
1 files changed, 5 insertions, 6 deletions
diff --git a/chrome/browser/browsing_data_remover.cc b/chrome/browser/browsing_data_remover.cc
index aef400a..6db8543 100644
--- a/chrome/browser/browsing_data_remover.cc
+++ b/chrome/browser/browsing_data_remover.cc
@@ -141,8 +141,7 @@ void BrowsingDataRemover::Remove(int remove_mask) {
&BrowsingDataRemover::ClearCacheOnIOThread,
profile_->GetRequestContext(),
delete_begin_,
- delete_end_,
- MessageLoop::current()));
+ delete_end_));
}
NotifyAndDeleteIfDone();
@@ -222,8 +221,7 @@ void BrowsingDataRemover::ClearedCache() {
void BrowsingDataRemover::ClearCacheOnIOThread(
URLRequestContextGetter* context_getter,
base::Time delete_begin,
- base::Time delete_end,
- MessageLoop* ui_loop) {
+ base::Time delete_end) {
// This function should be called on the IO thread.
DCHECK(ChromeThread::CurrentlyOn(ChromeThread::IO));
@@ -256,6 +254,7 @@ void BrowsingDataRemover::ClearCacheOnIOThread(
}
// Notify the UI thread that we are done.
- ui_loop->PostTask(FROM_HERE, NewRunnableMethod(
- this, &BrowsingDataRemover::ClearedCache));
+ ChromeThread::PostTask(
+ ChromeThread::UI, FROM_HERE,
+ NewRunnableMethod(this, &BrowsingDataRemover::ClearedCache));
}