Chromium Code Reviews| Index: ash/accelerators/accelerator_commands.cc |
| diff --git a/ash/accelerators/accelerator_commands.cc b/ash/accelerators/accelerator_commands.cc |
| index 94cc0566860e41e0fe8d14d668d3347c1ff8f4f8..2a6c9845dec5e8ca29bace0d55428f8aff06bd25 100644 |
| --- a/ash/accelerators/accelerator_commands.cc |
| +++ b/ash/accelerators/accelerator_commands.cc |
| @@ -107,5 +107,11 @@ void ResetInternalDisplayZoom() { |
| } |
| } |
| +void Unpin() { |
| + wm::WindowState* window_state = wm::GetActiveWindowState(); |
|
oshima
2016/06/18 04:18:13
Didn't we have a way to get pinned window?
hidehiko
2016/06/18 05:38:16
No from here.
We can add, but for consistency with
|
| + if (window_state->IsPinned()) |
| + window_state->Restore(); |
| +} |
| + |
| } // namespace accelerators |
| } // namespace ash |