Index: chrome/browser/extensions/extension_browser_event_router.cc |
diff --git a/chrome/browser/extensions/extension_browser_event_router.cc b/chrome/browser/extensions/extension_browser_event_router.cc |
index aded37d67262f840de4fe2732170f2bf590348b2..50d74f70dc9121647be1981efc0073762adc8dc5 100644 |
--- a/chrome/browser/extensions/extension_browser_event_router.cc |
+++ b/chrome/browser/extensions/extension_browser_event_router.cc |
@@ -11,6 +11,7 @@ |
#include "chrome/browser/extensions/extension_page_actions_module_constants.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/profiles/profile.h" |
#include "chrome/browser/tabs/tab_strip_model.h" |
#include "chrome/browser/ui/browser.h" |
@@ -171,8 +172,9 @@ void ExtensionBrowserEventRouter::UnregisterForTabNotifications( |
void ExtensionBrowserEventRouter::OnBrowserWindowReady(const Browser* browser) { |
ListValue args; |
- DictionaryValue* window_dictionary = ExtensionTabUtil::CreateWindowValue( |
- browser, false); |
+ DCHECK(browser->extension_window_controller()); |
+ DictionaryValue* window_dictionary = |
+ browser->extension_window_controller()->CreateWindowValue(); |
args.Append(window_dictionary); |
std::string json_args; |