diff options
author | dgozman@chromium.org <dgozman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-12-17 11:56:23 +0000 |
---|---|---|
committer | dgozman@chromium.org <dgozman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-12-17 11:56:23 +0000 |
commit | b995a1e1e61788aea2cbd09e7e227d6758dd931c (patch) | |
tree | f6d8424a7c117bb9394066839cda8d001858908e | |
parent | 3c6a09508732a8a4196d8f17d185983bdebd2941 (diff) | |
download | chromium_src-b995a1e1e61788aea2cbd09e7e227d6758dd931c.zip chromium_src-b995a1e1e61788aea2cbd09e7e227d6758dd931c.tar.gz chromium_src-b995a1e1e61788aea2cbd09e7e227d6758dd931c.tar.bz2 |
[filemanager] Decode escaped url in action choice dialog open code.
BUG=163436
TEST=See bug.
Review URL: https://chromiumcodereview.appspot.com/11590013
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@173446 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | chrome/browser/resources/file_manager/js/action_choice.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/resources/file_manager/js/action_choice.js b/chrome/browser/resources/file_manager/js/action_choice.js index 6370abb16..c0c484a 100644 --- a/chrome/browser/resources/file_manager/js/action_choice.js +++ b/chrome/browser/resources/file_manager/js/action_choice.js @@ -43,14 +43,14 @@ ActionChoice.PREVIEW_COUNT = 3; ActionChoice.load = function(opt_filesystem, opt_params) { ImageUtil.metrics = metrics; - var hash = location.hash ? location.hash.substr(1) : ''; + var hash = location.hash ? decodeURI(location.hash.substr(1)) : ''; var params = opt_params || {}; if (!params.source) params.source = hash; if (!params.metadataCache) params.metadataCache = MetadataCache.createFull(); function onFilesystem(filesystem) { var dom = document.querySelector('.action-choice'); - new ActionChoice(dom, filesystem, params); + ActionChoice.instance = new ActionChoice(dom, filesystem, params); } chrome.fileBrowserPrivate.getStrings(function(strings) { |