Index: chrome/browser/infobars/infobar_extension_api.cc |
diff --git a/chrome/browser/infobars/infobar_extension_api.cc b/chrome/browser/infobars/infobar_extension_api.cc |
index 359480fa92611cf8e489147080eabe62f394ab25..8e6625b44de3166902dd277190f7b42d46331a17 100644 |
--- a/chrome/browser/infobars/infobar_extension_api.cc |
+++ b/chrome/browser/infobars/infobar_extension_api.cc |
@@ -11,6 +11,7 @@ |
#include "chrome/browser/extensions/extension_infobar_delegate.h" |
#include "chrome/browser/extensions/extension_tab_util.h" |
#include "chrome/browser/extensions/extension_tabs_module_constants.h" |
+#include "chrome/browser/extensions/extension_window_controller.h" |
#include "chrome/browser/infobars/infobar_tab_helper.h" |
#include "chrome/browser/tab_contents/confirm_infobar_delegate.h" |
#include "chrome/browser/ui/browser.h" |
@@ -70,7 +71,8 @@ bool ShowInfoBarFunction::RunImpl() { |
GetExtension(), url, height)); |
// TODO(finnur): Return the actual DOMWindow object. Bug 26463. |
- result_.reset(ExtensionTabUtil::CreateWindowValue(browser, false)); |
+ DCHECK(browser->extension_window_controller()); |
+ result_.reset(browser->extension_window_controller()->CreateWindowValue()); |
return true; |
} |