Merge pull request #6089 from brave/window-menu

set the title for hidden and hidden-inset windows so they show up in …
This commit is contained in:
Cheng Zhao 2016-06-17 00:49:51 +00:00 committed by GitHub
commit d2a831aea5

View file

@ -800,10 +800,9 @@ void NativeWindowMac::Center() {
void NativeWindowMac::SetTitle(const std::string& title) {
title_ = title;
// We don't want the title to show in transparent or frameless window.
if (transparent() || !has_frame())
return;
if (!transparent() && (has_frame() ||
// exception for hidden and hidden-inset
force_show_buttons_))
[window_ setTitle:base::SysUTF8ToNSString(title)];
}