Fix some nits in chrome://downloads code
commitff279168dac0900c17a5dd5324208143ac517c23
authordbeam <dbeam@chromium.org>
Tue, 7 Jul 2015 00:00:07 +0000 (6 17:00 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 7 Jul 2015 00:00:38 +0000 (7 00:00 +0000)
treef611b89523e91fef787beabceeaa94695064f7f5
parentbc662b13487560d77da7777bccbb7658fe68944b
Fix some nits in chrome://downloads code

1) Make instance methods @private, encouraging static Manager use
2) Make a constants.js that both MD and non-MD downloads can use
3) Fix the tests to use only static downloads.Manager.* calls
4) Make onCanExecute_ easier to read

BUG=425626
R=tommycli@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#337523}
12 files changed:
chrome/browser/browser_resources.grd
chrome/browser/resources/downloads/compiled_resources.gyp
chrome/browser/resources/downloads/compiled_resources2.gyp
chrome/browser/resources/downloads/constants.js [new file with mode: 0644]
chrome/browser/resources/downloads/downloads.html
chrome/browser/resources/downloads/item_view.js
chrome/browser/resources/downloads/manager.js
chrome/browser/resources/md_downloads/downloads.html
chrome/browser/resources/md_downloads/manager.js
chrome/browser/ui/webui/downloads_ui.cc
chrome/browser/ui/webui/downloads_ui_browsertest.js
chrome/browser/ui/webui/downloads_ui_browsertest_base.js