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

Unified Diff: ui/file_manager/file_manager/background/js/app_window_wrapper.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/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
« no previous file with comments | « ui/file_manager/audio_player/js/background.js ('k') | ui/file_manager/file_manager/background/js/background.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698