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

Unified Diff: device/devices_app/usb/device_manager_impl.cc

Issue 1369643002: Add configuration and interface permission checks to DeviceImpl. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add new method ot Android USB mocks. Created 5 years, 3 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/devices_app/usb/device_manager_impl.cc
diff --git a/device/devices_app/usb/device_manager_impl.cc b/device/devices_app/usb/device_manager_impl.cc
index 333df78bdb27cdd050b3dee24220d67746c1da15..0fc287da2196a2b32be50e1a52b76852d27d202a 100644
--- a/device/devices_app/usb/device_manager_impl.cc
+++ b/device/devices_app/usb/device_manager_impl.cc
@@ -204,7 +204,9 @@ void DeviceManagerImpl::OnGetDevicePermissionCheckComplete(
return;
DCHECK(allowed_guids.size() == 1);
- new DeviceImpl(device, device_request.Pass());
+ PermissionProviderPtr permission_provider;
+ permission_provider_->Bind(mojo::GetProxy(&permission_provider));
+ new DeviceImpl(device, permission_provider.Pass(), device_request.Pass());
}
void DeviceManagerImpl::OnGetDevices(EnumerationOptionsPtr options,

Powered by Google App Engine
This is Rietveld 408576698