Commit 5337562e authored by Mitsuru Oshima's avatar Mitsuru Oshima Committed by Commit Bot

Don't set the window name if params.name is empty

Bug: None
Test: Print window tree and the browser's window shows its name "BrowserFrameAsh"
Change-Id: I3520f7a735441c9c8d6b2cf56ae91d03eafa5db4
Reviewed-on: https://chromium-review.googlesource.com/c/1334588Reviewed-by: default avatarMichael Wasserman <msw@chromium.org>
Commit-Queue: Mitsuru Oshima <oshima@chromium.org>
Cr-Commit-Position: refs/heads/master@{#608036}
parent 02bb1be5
......@@ -175,7 +175,8 @@ void NativeWidgetAura::InitNativeWidget(const Widget::InitParams& params) {
window_->Init(params.layer_type);
// Set name after layer init so it propagates to layer.
window_->SetName(params.name);
if (!params.name.empty())
window_->SetName(params.name);
if (params.type == Widget::InitParams::TYPE_CONTROL)
window_->Show();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment