This commit is contained in:
Cheng Zhao 2015-10-01 17:46:11 +08:00
parent 6082b83a65
commit 8d61531f4e
3 changed files with 1 additions and 13 deletions

View file

@ -158,13 +158,8 @@ void NativeWindow::InitFromOptions(const mate::Dictionary& options) {
// Then show it.
bool show = true;
options.Get(switches::kShow, &show);
if (show) {
if (show)
Show();
} else {
// When RenderView is created it sets to visible, this is to prevent
// breaking the visibility API.
web_contents()->WasHidden();
}
}
void NativeWindow::SetSize(const gfx::Size& size) {