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

Unified Diff: components/browsing_data/conditional_cache_deletion_helper.cc

Issue 2037843002: Remove use of deprecated MessageLoop methods in components. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: change precache Created 4 years, 6 months 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 | « no previous file | components/browsing_data/storage_partition_http_cache_data_remover.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/browsing_data/conditional_cache_deletion_helper.cc
diff --git a/components/browsing_data/conditional_cache_deletion_helper.cc b/components/browsing_data/conditional_cache_deletion_helper.cc
index 110b6d349078d5fc050339341f30481cb204f2c0..3d1e0f9b8658c94d829d099f4aedd7d62955fe9f 100644
--- a/components/browsing_data/conditional_cache_deletion_helper.cc
+++ b/components/browsing_data/conditional_cache_deletion_helper.cc
@@ -5,6 +5,9 @@
#include "components/browsing_data/conditional_cache_deletion_helper.h"
#include "base/callback.h"
+#include "base/location.h"
+#include "base/single_thread_task_runner.h"
+#include "base/threading/thread_task_runner_handle.h"
#include "content/public/browser/browser_thread.h"
namespace {
@@ -78,7 +81,7 @@ void ConditionalCacheDeletionHelper::IterateOverEntries(int error) {
// but we know that there is nothing more that we can do, so we return OK.
base::MessageLoop::current()->task_runner()->PostTask(
FROM_HERE, base::Bind(completion_callback_, net::OK));
- base::MessageLoop::current()->DeleteSoon(FROM_HERE, this);
+ base::ThreadTaskRunnerHandle::Get()->DeleteSoon(FROM_HERE, this);
return;
}
« no previous file with comments | « no previous file | components/browsing_data/storage_partition_http_cache_data_remover.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698