| Index: components/view_manager/public/cpp/view_manager_init.h
|
| diff --git a/components/view_manager/public/cpp/view_manager_init.h b/components/view_manager/public/cpp/view_manager_init.h
|
| index 2fcd74f027a5e3f424edc13ae1467e71add22048..316597c10fd18e8a4ef5a067f214ef1a98568600 100644
|
| --- a/components/view_manager/public/cpp/view_manager_init.h
|
| +++ b/components/view_manager/public/cpp/view_manager_init.h
|
| @@ -10,6 +10,8 @@
|
| #include "components/view_manager/public/interfaces/view_manager.mojom.h"
|
| #include "components/view_manager/public/interfaces/view_manager_root.mojom.h"
|
| #include "third_party/mojo/src/mojo/public/cpp/bindings/binding.h"
|
| +#include "third_party/mojo/src/mojo/public/cpp/bindings/error_handler.h"
|
| +
|
| namespace mojo {
|
|
|
| class ApplicationImpl;
|
| @@ -18,13 +20,13 @@ class ViewManagerDelegate;
|
| // ViewManagerInit is used to establish the initial connection to the
|
| // ViewManager. Use it when you know the ViewManager is not running and you're
|
| // app is going to be the first one to contact it.
|
| -class ViewManagerInit {
|
| +class ViewManagerInit : public mojo::ErrorHandler {
|
| public:
|
| // |root_client| is optional.
|
| ViewManagerInit(ApplicationImpl* app,
|
| ViewManagerDelegate* delegate,
|
| ViewManagerRootClient* root_client);
|
| - ~ViewManagerInit();
|
| + ~ViewManagerInit() override;
|
|
|
| // Returns the ViewManagerRoot. This is only valid if |root_client| was
|
| // supplied to the constructor.
|
| @@ -35,6 +37,9 @@ class ViewManagerInit {
|
|
|
| void OnCreate(InterfaceRequest<ViewManagerClient> request);
|
|
|
| + // ErrorHandler:
|
| + void OnConnectionError() override;
|
| +
|
| ApplicationImpl* app_;
|
| ViewManagerDelegate* delegate_;
|
| scoped_ptr<ClientFactory> client_factory_;
|
|
|