Index: ios/chrome/browser/browsing_data/ios_chrome_browsing_data_remover.mm |
diff --git a/ios/chrome/browser/browsing_data/ios_chrome_browsing_data_remover.mm b/ios/chrome/browser/browsing_data/ios_chrome_browsing_data_remover.mm |
index cb4e790a619782c05c45fa7f472044913a4de294..1486c61ca6da5a599f467c548ae7683c39240f8f 100644 |
--- a/ios/chrome/browser/browsing_data/ios_chrome_browsing_data_remover.mm |
+++ b/ios/chrome/browser/browsing_data/ios_chrome_browsing_data_remover.mm |
@@ -14,6 +14,7 @@ |
#include "base/logging.h" |
#include "base/metrics/histogram_macros.h" |
#include "base/metrics/user_metrics.h" |
+#include "base/threading/thread_task_runner_handle.h" |
#include "components/autofill/core/browser/personal_data_manager.h" |
#include "components/autofill/core/browser/webdata/autofill_webdata_service.h" |
#include "components/history/core/browser/history_service.h" |
@@ -399,7 +400,7 @@ void IOSChromeBrowsingDataRemover::NotifyAndDelete() { |
// History requests aren't happy if you delete yourself from the callback. |
// As such, we do a delete later. |
- base::MessageLoop::current()->DeleteSoon(FROM_HERE, this); |
+ base::ThreadTaskRunnerHandle::Get()->DeleteSoon(FROM_HERE, this); |
} |
void IOSChromeBrowsingDataRemover::NotifyAndDeleteIfDone() { |