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

Unified Diff: chrome/test/ppapi/ppapi_test.cc

Issue 1167163002: chrome: Remove use of MessageLoopProxy and deprecated MessageLoop APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added some missing message_loop.h includes. 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
« no previous file with comments | « chrome/test/chromedriver/session_commands.cc ('k') | chrome/utility/font_cache_handler_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/ppapi/ppapi_test.cc
diff --git a/chrome/test/ppapi/ppapi_test.cc b/chrome/test/ppapi/ppapi_test.cc
index 48d758a9258a3fe0316f869b35b7d5478f5d315f..6e9fc0356049e87ac8530a1bf920cc2be2cd61ff 100644
--- a/chrome/test/ppapi/ppapi_test.cc
+++ b/chrome/test/ppapi/ppapi_test.cc
@@ -6,9 +6,12 @@
#include "base/command_line.h"
#include "base/files/file_util.h"
+#include "base/location.h"
#include "base/path_service.h"
+#include "base/single_thread_task_runner.h"
#include "base/strings/string_util.h"
#include "base/strings/stringprintf.h"
+#include "base/thread_task_runner_handle.h"
#include "chrome/browser/chrome_notification_types.h"
#include "chrome/browser/infobars/infobar_service.h"
#include "chrome/browser/profiles/profile.h"
@@ -93,9 +96,9 @@ void PPAPITestBase::InfoBarObserver::Observe(
// It's not safe to remove the infobar here, since other observers (e.g. the
// InfoBarContainer) may still need to access it. Instead, post a task to
// do all necessary infobar manipulation as soon as this call stack returns.
- base::MessageLoop::current()->PostTask(
- FROM_HERE, base::Bind(&InfoBarObserver::VerifyInfoBarState,
- base::Unretained(this)));
+ base::ThreadTaskRunnerHandle::Get()->PostTask(
+ FROM_HERE,
+ base::Bind(&InfoBarObserver::VerifyInfoBarState, base::Unretained(this)));
}
void PPAPITestBase::InfoBarObserver::VerifyInfoBarState() {
« no previous file with comments | « chrome/test/chromedriver/session_commands.cc ('k') | chrome/utility/font_cache_handler_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698