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

Unified Diff: chrome/browser/printing/cloud_print/test/cloud_print_proxy_process_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
Index: chrome/browser/printing/cloud_print/test/cloud_print_proxy_process_browsertest.cc
diff --git a/chrome/browser/printing/cloud_print/test/cloud_print_proxy_process_browsertest.cc b/chrome/browser/printing/cloud_print/test/cloud_print_proxy_process_browsertest.cc
index 766693adbd226120e1204196a99487207540307b..12ecab717f14ec30073f20c5e627b7ee01fb1fc7 100644
--- a/chrome/browser/printing/cloud_print/test/cloud_print_proxy_process_browsertest.cc
+++ b/chrome/browser/printing/cloud_print/test/cloud_print_proxy_process_browsertest.cc
@@ -12,9 +12,11 @@
#include "base/process/kill.h"
#include "base/process/process.h"
#include "base/rand_util.h"
+#include "base/single_thread_task_runner.h"
#include "base/synchronization/waitable_event.h"
#include "base/test/multiprocess_test.h"
#include "base/test/test_timeouts.h"
+#include "base/thread_task_runner_handle.h"
#include "base/time/default_tick_clock.h"
#include "base/time/time.h"
#include "chrome/browser/chrome_content_browser_client.h"
@@ -103,8 +105,8 @@ class TestServiceProcess : public ServiceProcess {
bool Initialize(base::MessageLoopForUI* message_loop,
ServiceProcessState* state);
- base::MessageLoopProxy* IOMessageLoopProxy() {
- return io_thread_->message_loop_proxy().get();
+ base::SingleThreadTaskRunner* IOMessageLoopProxy() {
+ return io_thread_->task_runner().get();
}
};
@@ -462,7 +464,7 @@ base::Process CloudPrintProxyPolicyStartupTest::Launch(
void CloudPrintProxyPolicyStartupTest::WaitForConnect() {
observer_.Wait();
EXPECT_TRUE(CheckServiceProcessReady());
- EXPECT_TRUE(base::MessageLoopProxy::current().get());
+ EXPECT_TRUE(base::ThreadTaskRunnerHandle::Get().get());
ServiceProcessControl::GetInstance()->SetChannel(
IPC::ChannelProxy::Create(GetServiceProcessChannel(),
IPC::Channel::MODE_NAMED_CLIENT,

Powered by Google App Engine
This is Rietveld 408576698