Index: chrome/browser/ui/gtk/browser_window_gtk.cc |
diff --git a/chrome/browser/ui/gtk/browser_window_gtk.cc b/chrome/browser/ui/gtk/browser_window_gtk.cc |
index 7ede5fb5014c2ebc205fbd4efe67d420ac04f471..357cd9c25d48079985e183d1f2e5a9f0c11640b2 100644 |
--- a/chrome/browser/ui/gtk/browser_window_gtk.cc |
+++ b/chrome/browser/ui/gtk/browser_window_gtk.cc |
@@ -926,10 +926,19 @@ void BrowserWindowGtk::EnterFullscreen( |
} |
void BrowserWindowGtk::UpdateFullscreenExitBubbleContent( |
- const GURL& url, |
+ const GURL& url, |
FullscreenExitBubbleType bubble_type) { |
- if (fullscreen_exit_bubble_.get()) |
- fullscreen_exit_bubble_->UpdateContent(url, bubble_type); |
+ if (bubble_type == FEB_TYPE_NONE) { |
+ fullscreen_exit_bubble_.reset(); |
+ } else if (fullscreen_exit_bubble_.get()) { |
+ fullscreen_exit_bubble_->UpdateContent(url, bubble_type); |
+ } else { |
+ fullscreen_exit_bubble_.reset(new FullscreenExitBubbleGtk( |
+ GTK_FLOATING_CONTAINER(render_area_floating_container_), |
+ browser(), |
+ url, |
+ bubble_type)); |
+ } |
} |
void BrowserWindowGtk::ExitFullscreen() { |