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

Unified Diff: athena/extensions/extensions_delegate.cc

Issue 692563002: JS dialogs for athena (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix deps Created 6 years, 1 month 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 | « athena/extensions/athena_javascript_native_dialog_factory.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
« no previous file with comments | « athena/extensions/athena_javascript_native_dialog_factory.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698