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

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

Issue 2062333002: mojo::Callback -> base::Callback (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 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: device/usb/mojo/device_manager_impl.cc
diff --git a/device/usb/mojo/device_manager_impl.cc b/device/usb/mojo/device_manager_impl.cc
index c3b807d5b5a90b71ec6e3998f9ad39f0eaea0f6f..89f642fc8327cf6577e8ae7761869de63a04c9dc 100644
--- a/device/usb/mojo/device_manager_impl.cc
+++ b/device/usb/mojo/device_manager_impl.cc
@@ -51,7 +51,8 @@ DeviceManagerImpl::DeviceManagerImpl(
}
DeviceManagerImpl::~DeviceManagerImpl() {
- connection_error_handler_.Run();
+ if (!connection_error_handler_.is_null())
+ connection_error_handler_.Run();
}
void DeviceManagerImpl::GetDevices(EnumerationOptionsPtr options,

Powered by Google App Engine
This is Rietveld 408576698