1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "athena/extensions/public/extensions_delegate.h"
7 #include "athena/extensions/athena_constrained_window_views_client.h"
8 #include "athena/extensions/athena_javascript_native_dialog_factory.h"
9 #include "base/logging.h"
10 #include "extensions/components/javascript_dialog_extensions_client/javascript_dialog_extension_client_impl.h"
15 ExtensionsDelegate
* instance
= nullptr;
19 ExtensionsDelegate::ExtensionsDelegate() {
20 InstallConstrainedWindowViewsClient();
21 javascript_dialog_extensions_client::InstallClient();
22 InstallJavaScriptNativeDialogFactory();
27 ExtensionsDelegate::~ExtensionsDelegate() {
28 UninstallConstrainedWindowViewsClient();
34 ExtensionsDelegate
* ExtensionsDelegate::Get(content::BrowserContext
* context
) {
36 DCHECK_EQ(context
, instance
->GetBrowserContext());
41 void ExtensionsDelegate::Shutdown() {