| 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 c30674c868c2acf0b20a20f225959c9be4dc9dde..d8821789d7bb5701716ddf001955703c5a5ba48e 100644
|
| --- a/chrome/browser/ui/gtk/browser_window_gtk.cc
|
| +++ b/chrome/browser/ui/gtk/browser_window_gtk.cc
|
| @@ -922,10 +922,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() {
|
|
|