Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(962)

Unified Diff: chrome/browser/extensions/shell_window_registry.cc

Issue 10825240: Refactor ShellWindow to separate platform-specific code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: gtk Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;
}

Powered by Google App Engine
This is Rietveld 408576698