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

Unified Diff: ui/file_manager/file_manager/foreground/js/file_manager_commands.js

Issue 819953005: Files.app: Remove multi-profile related fileManagerPrivate APIs that are no more used. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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
Index: ui/file_manager/file_manager/foreground/js/file_manager_commands.js
diff --git a/ui/file_manager/file_manager/foreground/js/file_manager_commands.js b/ui/file_manager/file_manager/foreground/js/file_manager_commands.js
index 59cfbd3c326b163ff095304fa1a7610b0c9c3d3a..af69d7c50df04ae899b652a5467984eeb5f3697d 100644
--- a/ui/file_manager/file_manager/foreground/js/file_manager_commands.js
+++ b/ui/file_manager/file_manager/foreground/js/file_manager_commands.js
@@ -519,14 +519,10 @@ CommandHandler.COMMANDS_['new-window'] = /** @type {Command} */ ({
* @param {!FileManager} fileManager FileManager to use.
*/
execute: function(event, fileManager) {
- chrome.fileManagerPrivate.getProfiles(
- function(profiles, currentId, displayedId) {
- fileManager.backgroundPage.launchFileManager({
- currentDirectoryURL: fileManager.getCurrentDirectoryEntry() &&
- fileManager.getCurrentDirectoryEntry().toURL(),
- displayedId: currentId !== displayedId ? displayedId : undefined
- });
- });
+ fileManager.backgroundPage.launchFileManager({
+ currentDirectoryURL: fileManager.getCurrentDirectoryEntry() &&
+ fileManager.getCurrentDirectoryEntry().toURL()
+ });
},
/**
* @param {!Event} event Command event.
« no previous file with comments | « ui/file_manager/file_manager/background/js/test_util.js ('k') | ui/file_manager/video_player/js/background.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698