Index: device/devices_app/usb/device_manager_impl_unittest.cc |
diff --git a/device/devices_app/usb/device_manager_impl_unittest.cc b/device/devices_app/usb/device_manager_impl_unittest.cc |
index d4e43c882b052fc4bfadb25c51825a592e8bd7fe..ca7e0bdf1763040445340ecc194e5f3f94f31cfb 100644 |
--- a/device/devices_app/usb/device_manager_impl_unittest.cc |
+++ b/device/devices_app/usb/device_manager_impl_unittest.cc |
@@ -58,9 +58,8 @@ class USBDeviceManagerImplTest : public testing::Test { |
PermissionProviderPtr permission_provider; |
permission_provider_.Bind(mojo::GetProxy(&permission_provider)); |
DeviceManagerPtr device_manager; |
- new DeviceManagerImpl(mojo::GetProxy(&device_manager), |
- permission_provider.Pass(), |
- base::ThreadTaskRunnerHandle::Get()); |
+ DeviceManagerImpl::Create(permission_provider.Pass(), |
+ mojo::GetProxy(&device_manager)); |
return device_manager.Pass(); |
} |