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

Unified Diff: chrome/browser/process_singleton_browsertest.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
« no previous file with comments | « chrome/browser/process_resource_usage.cc ('k') | chrome/browser/process_singleton_posix.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/process_singleton_browsertest.cc
diff --git a/chrome/browser/process_singleton_browsertest.cc b/chrome/browser/process_singleton_browsertest.cc
index 0ecd9aeb61b1d5d61a40f3d6dee698e3f028803b..c1537dbd22defb0bf4d7abe11bef1f0392ee0d0b 100644
--- a/chrome/browser/process_singleton_browsertest.cc
+++ b/chrome/browser/process_singleton_browsertest.cc
@@ -14,11 +14,13 @@
#include "base/command_line.h"
#include "base/files/file_path.h"
#include "base/files/scoped_temp_dir.h"
+#include "base/location.h"
#include "base/memory/ref_counted.h"
#include "base/path_service.h"
#include "base/process/launch.h"
#include "base/process/process.h"
#include "base/process/process_iterator.h"
+#include "base/single_thread_task_runner.h"
#include "base/synchronization/waitable_event.h"
#include "base/test/test_timeouts.h"
#include "base/threading/thread.h"
@@ -253,11 +255,10 @@ IN_PROC_BROWSER_TEST_F(ProcessSingletonTest, MAYBE_StartupRaceCondition) {
ASSERT_NE(static_cast<base::MessageLoop*>(NULL),
chrome_starter_threads_[i]->message_loop());
- chrome_starter_threads_[i]->message_loop()->PostTask(
- FROM_HERE, base::Bind(&ChromeStarter::StartChrome,
- chrome_starters_[i].get(),
- &threads_waker_,
- first_run));
+ chrome_starter_threads_[i]->task_runner()->PostTask(
+ FROM_HERE,
+ base::Bind(&ChromeStarter::StartChrome, chrome_starters_[i].get(),
+ &threads_waker_, first_run));
}
// Wait for all the starters to be ready.
« no previous file with comments | « chrome/browser/process_resource_usage.cc ('k') | chrome/browser/process_singleton_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698