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

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: Created 6 years, 2 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
Index: athena/extensions/extensions_delegate.cc
diff --git a/athena/extensions/extensions_delegate.cc b/athena/extensions/extensions_delegate.cc
index a5c39b91628c85661bed7eea662aaae7e471c6f8..98345411775184eb7e0b00256f93913983725e40 100644
--- a/athena/extensions/extensions_delegate.cc
+++ b/athena/extensions/extensions_delegate.cc
@@ -4,6 +4,8 @@
#include "athena/extensions/public/extensions_delegate.h"
+#include "athena/extensions/athena_constrained_window_views_client.h"
+#include "athena/extensions/athena_javascript_dialog_manager_client.h"
#include "base/logging.h"
namespace athena {
@@ -14,11 +16,15 @@ ExtensionsDelegate* instance = nullptr;
} // namespace
ExtensionsDelegate::ExtensionsDelegate() {
+ InstallConstrainedWindowViewsClient();
+ InstallJavaScriptDialogManagerClient();
DCHECK(!instance);
instance = this;
}
ExtensionsDelegate::~ExtensionsDelegate() {
+ UninstallJavaScriptDialogManagerClient();
+ UninstallConstrainedWindowViewsClient();
DCHECK(instance);
instance = nullptr;
}

Powered by Google App Engine
This is Rietveld 408576698