| Index: chrome/browser/ui/views/frame/opaque_browser_frame_view_linux.cc
|
| diff --git a/chrome/browser/ui/views/frame/opaque_browser_frame_view_linux.cc b/chrome/browser/ui/views/frame/opaque_browser_frame_view_linux.cc
|
| index 9d7995c3101888ae95ce3277ee5619efddc05529..f0def59e991f76fb430da6f6e6536934e2334ce6 100644
|
| --- a/chrome/browser/ui/views/frame/opaque_browser_frame_view_linux.cc
|
| +++ b/chrome/browser/ui/views/frame/opaque_browser_frame_view_linux.cc
|
| @@ -38,6 +38,13 @@ bool OpaqueBrowserFrameViewLinux::ShouldShowCaptionButtons() const {
|
| return !(view_->IsMaximized() && ui && ui->UnityIsRunning());
|
| }
|
|
|
| +bool OpaqueBrowserFrameViewLinux::ShouldShowTitleBar() const {
|
| + // On Ubuntu Unity, if the window is maximized, the system will provide
|
| + // a title bar, so Chrome should not add its own.
|
| + views::LinuxUI* ui = views::LinuxUI::instance();
|
| + return !(view_->IsMaximized() && ui && ui->UnityIsRunning());
|
| +}
|
| +
|
| ///////////////////////////////////////////////////////////////////////////////
|
| // OpaqueBrowserFrameViewLinux,
|
| // views::WindowButtonOrderObserver implementation:
|
|
|