Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2017)

Unified Diff: chrome/browser/resources/file_manager/js/action_choice.js

Issue 11590013: [filemanager] Decode escaped url in action choice dialog open code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/file_manager/js/action_choice.js
===================================================================
--- chrome/browser/resources/file_manager/js/action_choice.js (revision 173427)
+++ chrome/browser/resources/file_manager/js/action_choice.js (working copy)
@@ -43,14 +43,14 @@
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);
Vladislav Kaznacheev 2012/12/17 09:21:49 Why in this patch?
dgozman 2012/12/17 10:08:28 Well, creating a separate patch seems like an over
}
chrome.fileBrowserPrivate.getStrings(function(strings) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698