Index: chrome/browser/extensions/shell_window_registry.cc |
diff --git a/chrome/browser/extensions/shell_window_registry.cc b/chrome/browser/extensions/shell_window_registry.cc |
index e97138df3b96457e7c3d02410b7555d1d9153efa..e2e47fb04161fb0b5d056e903b119984ac33b1de 100644 |
--- a/chrome/browser/extensions/shell_window_registry.cc |
+++ b/chrome/browser/extensions/shell_window_registry.cc |
@@ -62,7 +62,7 @@ ShellWindow* ShellWindowRegistry::GetShellWindowForNativeWindow( |
gfx::NativeWindow window) const { |
for (ShellWindowSet::const_iterator i = shell_windows_.begin(); |
i != shell_windows_.end(); ++i) { |
- if ((*i)->GetNativeWindow() == window) |
+ if ((*i)->GetBaseWindow()->GetNativeWindow() == window) |
return *i; |
} |