Index: athena/extensions/extensions_delegate.cc |
diff --git a/athena/extensions/extensions_delegate.cc b/athena/extensions/extensions_delegate.cc |
index a5c39b91628c85661bed7eea662aaae7e471c6f8..00a93b96d990e585df76e9ad5a9a696cc38d9dc0 100644 |
--- a/athena/extensions/extensions_delegate.cc |
+++ b/athena/extensions/extensions_delegate.cc |
@@ -4,7 +4,10 @@ |
#include "athena/extensions/public/extensions_delegate.h" |
+#include "athena/extensions/athena_constrained_window_views_client.h" |
+#include "athena/extensions/athena_javascript_native_dialog_factory.h" |
#include "base/logging.h" |
+#include "extensions/components/javascript_dialog_extensions_client/javascript_dialog_extension_client_impl.h" |
namespace athena { |
namespace { |
@@ -14,11 +17,15 @@ ExtensionsDelegate* instance = nullptr; |
} // namespace |
ExtensionsDelegate::ExtensionsDelegate() { |
+ InstallConstrainedWindowViewsClient(); |
+ InstallJavaScriptDialogExtensionsClient(); |
+ InstallJavaScriptNativeDialogFactory(); |
DCHECK(!instance); |
instance = this; |
} |
ExtensionsDelegate::~ExtensionsDelegate() { |
+ UninstallConstrainedWindowViewsClient(); |
DCHECK(instance); |
instance = nullptr; |
} |