Run canExecute before executing delete command.
commitad1b834583e75bcf2e0d9a727479f1f1603067ce
authoryawano <yawano@chromium.org>
Fri, 3 Jul 2015 02:33:45 +0000 (2 19:33 -0700)
committerCommit bot <commit-bot@chromium.org>
Fri, 3 Jul 2015 02:34:28 +0000 (3 02:34 +0000)
treebe2d742db7b68883bf19c9d6698c4b7b877a57b6
parent85c3c50886b627a9c47e85228026254442a5ddee
Run canExecute before executing delete command.

Previously canExecute is not explicitly called when delete button in the
toolbar is clicked. This CL changes it to call the method to update the
avalability of delete command properly.

BUG=506472
TEST=browser_tests:Delete/FileManagerBrowserTest.Test/1

Review URL: https://codereview.chromium.org/1211083005

Cr-Commit-Position: refs/heads/master@{#337274}
chrome/browser/chromeos/file_manager/file_manager_browsertest.cc
ui/file_manager/file_manager/foreground/js/toolbar_controller.js
ui/file_manager/integration_tests/file_manager/delete.js