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

Unified Diff: device/devices_app/devices_app.h

Issue 1226163009: Convert usages of mojo::ErrorHandler in //device to callbacks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 | « no previous file | device/devices_app/devices_app.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/devices_app/devices_app.h
diff --git a/device/devices_app/devices_app.h b/device/devices_app/devices_app.h
index eda8d4c98001e3505aaaa1f7e84edeab3a56229d..bbeb4bf98c03cd115659257043bb5e4bd24847b3 100644
--- a/device/devices_app/devices_app.h
+++ b/device/devices_app/devices_app.h
@@ -28,8 +28,7 @@ class DeviceManager;
}
class DevicesApp : public mojo::ApplicationDelegate,
- public mojo::InterfaceFactory<usb::DeviceManager>,
- public mojo::ErrorHandler {
+ public mojo::InterfaceFactory<usb::DeviceManager> {
public:
explicit DevicesApp(
scoped_refptr<base::SequencedTaskRunner> service_task_runner);
@@ -48,8 +47,8 @@ class DevicesApp : public mojo::ApplicationDelegate,
void Create(mojo::ApplicationConnection* connection,
mojo::InterfaceRequest<usb::DeviceManager> request) override;
- // mojo::ErrorHandler:
- void OnConnectionError() override;
+ // Mojo error handler to track device manager count.
+ void OnConnectionError();
// Sets the app for destruction after a period of idle time. If any top-level
// services (e.g. usb::DeviceManager) are bound before the timeout elapses,
« no previous file with comments | « no previous file | device/devices_app/devices_app.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698