Index: chrome/browser/ui/panels/panel.cc |
diff --git a/chrome/browser/ui/panels/panel.cc b/chrome/browser/ui/panels/panel.cc |
index 7fc539b516ee913571a187e3bcab8ffcb3765c6a..baf2e43bcba3205187adad7c523e29f4a45ee163 100644 |
--- a/chrome/browser/ui/panels/panel.cc |
+++ b/chrome/browser/ui/panels/panel.cc |
@@ -92,7 +92,13 @@ void Panel::SetBounds(const gfx::Rect& bounds) { |
// close on the first attempt. |
void Panel::Close() { |
native_panel_->ClosePanel(); |
+ |
+// TODO(dimich): we need to only remove the panel when and if it actually |
+// closes. It is now only implemented on Mac (unless it's synchronous on other |
jennb
2011/08/22 19:13:02
Change the 2nd sentence to state that changes are
|
+// platforms). |
+#if !defined(OS_MACOSX) |
manager()->Remove(this); |
+#endif |
} |
void Panel::Activate() { |