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

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: nit 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 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;
}

Powered by Google App Engine
This is Rietveld 408576698