| Index: chrome/browser/extensions/extension_tab_util.cc
|
| diff --git a/chrome/browser/extensions/extension_tab_util.cc b/chrome/browser/extensions/extension_tab_util.cc
|
| index f1783f72ecba294145bea60075ecb628e8dd1d18..fb368a17248a7de5cec668923d896c84a95119e4 100644
|
| --- a/chrome/browser/extensions/extension_tab_util.cc
|
| +++ b/chrome/browser/extensions/extension_tab_util.cc
|
| @@ -55,8 +55,7 @@ WindowController* GetAppWindowController(const WebContents* contents) {
|
| AppWindowRegistry* registry = AppWindowRegistry::Get(profile);
|
| if (!registry)
|
| return NULL;
|
| - AppWindow* app_window =
|
| - registry->GetAppWindowForRenderViewHost(contents->GetRenderViewHost());
|
| + AppWindow* app_window = registry->GetAppWindowForWebContents(contents);
|
| if (!app_window)
|
| return NULL;
|
| return WindowControllerList::GetInstance()->FindWindowById(
|
|
|