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

Unified Diff: chrome/browser/ui/views/frame/browser_frame_ash.cc

Issue 2015223002: MacViews: Fixed BrowserViewTest.CloseWithTabsStartWithActive. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed handler from BrowserFrameAsh. Nits. Created 4 years, 7 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/ui/views/frame/browser_frame_ash.cc
diff --git a/chrome/browser/ui/views/frame/browser_frame_ash.cc b/chrome/browser/ui/views/frame/browser_frame_ash.cc
index e38d9bd0e70a1b254359bfd98fab561ec06a74fd..d7892750524a7802721657380eb2f26c6133f49f 100644
--- a/chrome/browser/ui/views/frame/browser_frame_ash.cc
+++ b/chrome/browser/ui/views/frame/browser_frame_ash.cc
@@ -82,14 +82,6 @@ BrowserFrameAsh::BrowserFrameAsh(BrowserFrame* browser_frame,
///////////////////////////////////////////////////////////////////////////////
// BrowserFrameAsh, views::NativeWidgetAura overrides:
-void BrowserFrameAsh::OnWindowDestroying(aura::Window* window) {
- // Destroy any remaining WebContents early on. Doing so may result in
- // calling back to one of the Views/LayoutManagers or supporting classes of
- // BrowserView. By destroying here we ensure all said classes are valid.
- DestroyBrowserWebContents(browser_view_->browser());
- NativeWidgetAura::OnWindowDestroying(window);
-}
-
void BrowserFrameAsh::OnWindowTargetVisibilityChanged(bool visible) {
if (visible) {
// Once the window has been shown we know the requested bounds

Powered by Google App Engine
This is Rietveld 408576698