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

Unified Diff: views/widget/native_widget_aura.cc

Issue 8571026: Fix fullscreen mode on aura (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: git-try -b win_aura,linux_aura,win,linux_chromeos Created 9 years, 1 month 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 | « chrome/test/base/in_process_browser_test.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/widget/native_widget_aura.cc
diff --git a/views/widget/native_widget_aura.cc b/views/widget/native_widget_aura.cc
index ee23f426f26c5b6a1d6c38078c1d2759ddc09c7a..c96b644d528df6b7fae5051dca6288224e548f9e 100644
--- a/views/widget/native_widget_aura.cc
+++ b/views/widget/native_widget_aura.cc
@@ -374,7 +374,9 @@ void NativeWidgetAura::Show() {
}
void NativeWidgetAura::Hide() {
- window_->Hide();
+ // |window_| may already be deleted by parent window.
+ if (window_)
Ben Goodger (Google) 2011/11/16 15:48:25 This seems kind of random. What other functions in
oshima 2011/11/16 16:51:47 On second thought, I think I should move this to C
+ window_->Hide();
}
void NativeWidgetAura::ShowMaximizedWithBounds(
« no previous file with comments | « chrome/test/base/in_process_browser_test.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698