Chromium Code Reviews| Index: components/exo/shell_surface.cc |
| diff --git a/components/exo/shell_surface.cc b/components/exo/shell_surface.cc |
| index da62c7779a4c368ccc8d44496f9e886dbb619026..f8957e9529efe2af78b52c83b7c18748fcd4af8f 100644 |
| --- a/components/exo/shell_surface.cc |
| +++ b/components/exo/shell_surface.cc |
| @@ -404,7 +404,7 @@ void ShellSurface::SetFullscreen(bool fullscreen) { |
| UpdateShelfStateForFullscreenChange(widget_); |
| } |
| -void ShellSurface::SetPinned(bool pinned) { |
| +void ShellSurface::SetPinned(bool pinned, bool trusted) { |
| TRACE_EVENT1("exo", "ShellSurface::SetPinned", "pinned", pinned); |
|
reveman
2016/08/26 12:44:29
nit: add trusted flag to trace event
hirono
2016/08/29 00:24:51
Done.
|
| if (!widget_) |
| @@ -414,7 +414,7 @@ void ShellSurface::SetPinned(bool pinned) { |
| // state doesn't change. |
| ScopedConfigure scoped_configure(this, true); |
| if (pinned) { |
| - ash::wm::PinWindow(widget_->GetNativeWindow()); |
| + ash::wm::PinWindow(widget_->GetNativeWindow(), trusted); |
| } else { |
| // At the moment, we cannot just unpin the window state, due to ash |
| // implementation. Instead, we call Restore() to unpin, if it is Pinned |