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

Unified Diff: device/hid/hid_connection_unittest.cc

Issue 464753002: Fix HidService lifetime issues. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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: device/hid/hid_connection_unittest.cc
diff --git a/device/hid/hid_connection_unittest.cc b/device/hid/hid_connection_unittest.cc
index eb973f776e0d831ac70be7081e35e9b1fde2f0ad..0c744c81ec3e17919d3255c02f76e174039a38b8 100644
--- a/device/hid/hid_connection_unittest.cc
+++ b/device/hid/hid_connection_unittest.cc
@@ -56,7 +56,8 @@ class HidConnectionTest : public testing::Test {
if (!UsbTestGadget::IsTestEnabled()) return;
message_loop_.reset(new base::MessageLoopForIO());
- service_.reset(HidService::Create(message_loop_->message_loop_proxy()));
+ service_.reset(HidService::GetInstance(
+ message_loop_->message_loop_proxy()));
Reilly Grant (use Gerrit) 2014/08/12 17:12:17 This line points out exactly what I'm going to nee
ASSERT_TRUE(service_);
test_gadget_ = UsbTestGadget::Claim();

Powered by Google App Engine
This is Rietveld 408576698