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

Unified Diff: chrome/browser/infobars/infobar_responder.cc

Issue 1143343005: chrome/browser: Remove use of MessageLoopProxy and deprecated MessageLoop APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased. Created 5 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
Index: chrome/browser/infobars/infobar_responder.cc
diff --git a/chrome/browser/infobars/infobar_responder.cc b/chrome/browser/infobars/infobar_responder.cc
index 4fc225ec2713a4d3aa8a91b32cc8dc62290fbdf4..8f8cca5169432e8360cb94a077d1e1357861bc84 100644
--- a/chrome/browser/infobars/infobar_responder.cc
+++ b/chrome/browser/infobars/infobar_responder.cc
@@ -5,7 +5,9 @@
#include "chrome/browser/infobars/infobar_responder.h"
#include "base/bind.h"
-#include "base/message_loop/message_loop.h"
+#include "base/location.h"
+#include "base/single_thread_task_runner.h"
+#include "base/thread_task_runner_handle.h"
#include "chrome/browser/infobars/infobar_service.h"
#include "components/infobars/core/confirm_infobar_delegate.h"
#include "components/infobars/core/infobar.h"
@@ -28,7 +30,7 @@ void InfoBarResponder::OnInfoBarAdded(infobars::InfoBar* infobar) {
infobar->delegate()->AsConfirmInfoBarDelegate();
DCHECK(delegate);
- base::MessageLoop::current()->PostTask(
+ base::ThreadTaskRunnerHandle::Get()->PostTask(
FROM_HERE,
base::Bind(&InfoBarResponder::Respond, base::Unretained(this), delegate));
}
« no previous file with comments | « chrome/browser/history/web_history_service_unittest.cc ('k') | chrome/browser/intranet_redirect_detector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698