Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / chrome / browser / ui / webui / constrained_web_dialog_ui.cc
index 41c21de..c517ae7 100644 (file)
 #include "ui/web_dialogs/web_dialog_delegate.h"
 #include "ui/web_dialogs/web_dialog_ui.h"
 
+#if defined(ENABLE_EXTENSIONS)
+#include "chrome/browser/extensions/tab_helper.h"
+#endif
+
 using content::RenderViewHost;
 using content::WebContents;
 using content::WebUIMessageHandler;
@@ -46,6 +50,9 @@ class ConstrainedWebDialogDelegateUserData
 
 ConstrainedWebDialogUI::ConstrainedWebDialogUI(content::WebUI* web_ui)
     : WebUIController(web_ui) {
+#if defined(ENABLE_EXTENSIONS)
+  extensions::TabHelper::CreateForWebContents(web_ui->GetWebContents());
+#endif
 }
 
 ConstrainedWebDialogUI::~ConstrainedWebDialogUI() {