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

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

Issue 7550035: Revert 95621 - Keeping the current directory in URL. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 4 months 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 | « chrome/browser/resources/file_manager/js/file_manager.js ('k') | 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/main.js
===================================================================
--- chrome/browser/resources/file_manager/js/main.js (revision 95624)
+++ chrome/browser/resources/file_manager/js/main.js (working copy)
@@ -13,11 +13,19 @@
* Called by main.html after the dom has been parsed.
*/
function init() {
+ var params;
+
var rootPaths = ['Downloads', 'removable', 'archive', 'tmp'];
+ if (document.location.search) {
+ var json = decodeURIComponent(document.location.search.substr(1));
+ var params = JSON.parse(json);
+ console.log('params: ' + JSON.stringify(params));
+ }
+
function onEntriesFound(filesystem, entries) {
FileManager.initStrings(function () {
- fileManager = new FileManager(document.body, filesystem, entries);
+ fileManager = new FileManager(document.body, filesystem, entries, params);
// We're ready to run. Tests can monitor for this state with
// ExtensionTestMessageListener listener("ready");
// ASSERT_TRUE(listener.WaitUntilSatisfied());
« no previous file with comments | « chrome/browser/resources/file_manager/js/file_manager.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698