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

Unified Diff: dbus/test_server.cc

Issue 2162293002: Remove unused base::Thread::thread_handle() getter. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 | « base/threading/thread.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dbus/test_server.cc
diff --git a/dbus/test_server.cc b/dbus/test_server.cc
index 1b630648b70c87c65ba37988fcdaf4a9cedb4056..54bb0c00764d81e26c54acba8201075597aa96e4 100644
--- a/dbus/test_server.cc
+++ b/dbus/test_server.cc
@@ -13,16 +13,15 @@ int main(int argc, char** argv) {
base::CommandLine::Init(argc, argv);
TestTimeouts::Initialize();
- base::Thread* dbus_thread = new base::Thread("D-Bus Thread");
+ base::Thread dbus_thread("D-Bus Thread");
base::Thread::Options thread_options;
thread_options.message_loop_type = base::MessageLoop::TYPE_IO;
- CHECK(dbus_thread->StartWithOptions(thread_options));
+ CHECK(dbus_thread.StartWithOptions(thread_options));
dbus::TestService::Options options;
- options.dbus_task_runner = dbus_thread->task_runner();
+ options.dbus_task_runner = dbus_thread.task_runner();
dbus::TestService* test_service = new dbus::TestService(options);
CHECK(test_service->StartService());
CHECK(test_service->WaitUntilServiceIsStarted());
CHECK(test_service->HasDBusThread());
- base::PlatformThread::Join(dbus_thread->thread_handle());
}
« no previous file with comments | « base/threading/thread.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698