Index: ui/file_manager/file_manager/background/js/app_window_wrapper.js |
diff --git a/ui/file_manager/file_manager/background/js/app_window_wrapper.js b/ui/file_manager/file_manager/background/js/app_window_wrapper.js |
index fea1cd625745eb85a7a69c1a90db0b914543cc76..60b1546016d38db0ec552c1b5c65bbac75bcd713 100644 |
--- a/ui/file_manager/file_manager/background/js/app_window_wrapper.js |
+++ b/ui/file_manager/file_manager/background/js/app_window_wrapper.js |
@@ -56,31 +56,6 @@ AppWindowWrapper.makeGeometryKey = function(url) { |
}; |
/** |
- * Focuses the window on the specified desktop. |
- * @param {chrome.app.window.AppWindow} appWindow Application window. |
- * @param {string=} opt_profileId The profiled ID of the target window. If it is |
- * dropped, the window is focused on the current window. |
- */ |
-AppWindowWrapper.focusOnDesktop = function(appWindow, opt_profileId) { |
- new Promise(function(onFulfilled, onRejected) { |
- if (opt_profileId) { |
- onFulfilled(opt_profileId); |
- } else { |
- chrome.fileManagerPrivate.getProfiles( |
- function(profiles, currentId, displayedId) { |
- onFulfilled(currentId); |
- }); |
- } |
- }).then(function(profileId) { |
- appWindow.contentWindow.chrome.fileManagerPrivate.visitDesktop( |
- profileId, |
- function() { |
- appWindow.focus(); |
- }); |
- }); |
-}; |
- |
-/** |
* Shift distance to avoid overlapping windows. |
* @type {number} |
* @const |