Add a way to override the sharing URL for debugging.
commitd2126f755b243423ce88363ab74d9d3ad887b3ab
authormtomasz <mtomasz@chromium.org>
Thu, 4 Dec 2014 02:07:11 +0000 (3 18:07 -0800)
committerCommit bot <commit-bot@chromium.org>
Thu, 4 Dec 2014 02:07:30 +0000 (4 02:07 +0000)
tree84ad840de2406976cb4d24535534a4bc907df77e
parent7151cea021382eaec546a6a6a3ac0bf75f58aad1
Add a way to override the sharing URL for debugging.

To test a new sharing URL, do:
1. Launch dev tools for the Files app window.
2. fileManager.ui.shareDialog.setOverrideURLForTesting('https://...');

The sharing dialog will be always run with the overriden URL. To cancel
overring, call the method with NULL.

TEST=Tested manually.
BUG=438485

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

Cr-Commit-Position: refs/heads/master@{#306745}
ui/file_manager/file_manager/foreground/js/ui/share_dialog.js