| 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 793490188307058cb3fff409f33051ad9e5a778d..d852cffd6354d22834fa87f0a6e6f64f2fd0b099 100644
|
| --- a/chrome/browser/extensions/shell_window_registry.cc
|
| +++ b/chrome/browser/extensions/shell_window_registry.cc
|
| @@ -58,6 +58,17 @@ ShellWindow* ShellWindowRegistry::GetShellWindowForRenderViewHost(
|
| return NULL;
|
| }
|
|
|
| +ShellWindow* ShellWindowRegistry::GetShellWindowForNativeWindow(
|
| + gfx::NativeWindow window) const {
|
| + for (ShellWindowSet::const_iterator i = shell_windows_.begin();
|
| + i != shell_windows_.end(); ++i) {
|
| + if ((*i)->GetNativeWindow() == window)
|
| + return *i;
|
| + }
|
| +
|
| + return NULL;
|
| +}
|
| +
|
| ///////////////////////////////////////////////////////////////////////////////
|
| // Factory boilerplate
|
|
|
|
|