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 2bd6fc6cde020a5917e2de8afb8ca91bee7d61eb..6de703ccf8d2f5824007dfb69b4c47f9ff96530b 100644 |
--- a/chrome/browser/extensions/shell_window_registry.cc |
+++ b/chrome/browser/extensions/shell_window_registry.cc |
@@ -64,7 +64,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; |
} |