| Index: chrome/browser/ui/panels/panel.cc
|
| diff --git a/chrome/browser/ui/panels/panel.cc b/chrome/browser/ui/panels/panel.cc
|
| index 976ede4122e03f18b7357222912a1bd484a97781..920cfac041a4cf6276140c180b8fb5ccc49aeb92 100644
|
| --- a/chrome/browser/ui/panels/panel.cc
|
| +++ b/chrome/browser/ui/panels/panel.cc
|
| @@ -47,6 +47,10 @@ Panel::Panel(Browser* browser, const gfx::Rect& bounds)
|
|
|
| Panel::~Panel() {
|
| // Invoked by native panel so do not access native_panel_ here.
|
| + content::NotificationService::current()->Notify(
|
| + chrome::NOTIFICATION_PANEL_DELETED,
|
| + content::Source<Panel>(this),
|
| + content::NotificationService::NoDetails());
|
| }
|
|
|
| PanelManager* Panel::manager() const {
|
| @@ -173,14 +177,6 @@ void Panel::SetBounds(const gfx::Rect& bounds) {
|
| // close on the first attempt.
|
| void Panel::Close() {
|
| native_panel_->ClosePanel();
|
| -
|
| -// TODO(dimich): Only implemented fully async on Mac. Need to update other
|
| -// platforms. The panel should be removed from PanelManager when and if it
|
| -// was actually closed. The closing can be cancelled because of onbeforeunload
|
| -// handler on the web page. http://crbug.com/102720
|
| -#if !defined(OS_MACOSX)
|
| - manager()->Remove(this);
|
| -#endif
|
| }
|
|
|
| void Panel::Activate() {
|
|
|