| Index: ash/accelerators/accelerator_controller.cc
|
| diff --git a/ash/accelerators/accelerator_controller.cc b/ash/accelerators/accelerator_controller.cc
|
| index fe526cf633c685b6d2f3206f531ae6dcef627f88..7d1137a550cd6b44a980ec6d8f23d36d53172fd6 100644
|
| --- a/ash/accelerators/accelerator_controller.cc
|
| +++ b/ash/accelerators/accelerator_controller.cc
|
| @@ -443,7 +443,8 @@ bool AcceleratorController::PerformAction(int action,
|
| return HandleRestoreTab();
|
| case TAKE_SCREENSHOT:
|
| case TAKE_SCREENSHOT_BY_PRTSCN_KEY:
|
| - if (screenshot_delegate_.get()) {
|
| + if (screenshot_delegate_.get() &&
|
| + screenshot_delegate_->CanTakeScreenshot()) {
|
| Shell::RootWindowList root_windows = Shell::GetAllRootWindows();
|
| for (size_t i = 0; i < root_windows.size(); ++i)
|
| screenshot_delegate_->HandleTakeScreenshot(root_windows[i]);
|
|
|