Commit a077f61e authored by Mitsuru Oshima's avatar Mitsuru Oshima Committed by Commit Bot

Set layer name when dcheck is on

Bug: None
Change-Id: I9e90e23f01d3d67aa479fe79864d47cd067aa62a
Reviewed-on: https://chromium-review.googlesource.com/c/1351150
Commit-Queue: Mitsuru Oshima <oshima@chromium.org>
Reviewed-by: default avatarScott Violet <sky@chromium.org>
Cr-Commit-Position: refs/heads/master@{#611142}
parent fd5349d6
...@@ -1335,7 +1335,7 @@ std::unique_ptr<ui::Layer> Window::RecreateLayer() { ...@@ -1335,7 +1335,7 @@ std::unique_ptr<ui::Layer> Window::RecreateLayer() {
} }
void Window::UpdateLayerName() { void Window::UpdateLayerName() {
#if !defined(NDEBUG) #if DCHECK_IS_ON()
DCHECK(layer()); DCHECK(layer());
std::string layer_name(GetName()); std::string layer_name(GetName());
......
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