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

Unified Diff: trunk/src/chrome/browser/ui/views/panels/panel_view.cc

Issue 196953009: Revert 256563 "Reland r256396 Add views implementation for AXTre..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 9 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
« no previous file with comments | « no previous file | trunk/src/ui/accessibility/ax_tree_source.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/chrome/browser/ui/views/panels/panel_view.cc
===================================================================
--- trunk/src/chrome/browser/ui/views/panels/panel_view.cc (revision 256744)
+++ trunk/src/chrome/browser/ui/views/panels/panel_view.cc (working copy)
@@ -311,8 +311,6 @@
}
PanelView::~PanelView() {
- if (window_)
- window_->RemoveObserver(this);
}
void PanelView::ShowPanel() {
@@ -781,7 +779,6 @@
}
void PanelView::WindowClosing() {
-
// When closing a panel via window.close, API or the close button,
// ClosePanel() is called first, destroying the native |window_|
// which results in this method being called. ClosePanel() sets
@@ -951,10 +948,7 @@
}
void PanelView::OnWidgetDestroying(views::Widget* widget) {
- if (window_) {
- window_->RemoveObserver(this);
- window_ = NULL;
- }
+ window_ = NULL;
}
void PanelView::OnWidgetActivationChanged(views::Widget* widget, bool active) {
« no previous file with comments | « no previous file | trunk/src/ui/accessibility/ax_tree_source.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698