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

Unified Diff: ui/file_manager/file_manager/background/js/background.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/background.js
diff --git a/ui/file_manager/file_manager/background/js/background.js b/ui/file_manager/file_manager/background/js/background.js
index 1c5a027bc7641df82fefde18dce1b65e3cb84ee1..632181c8b1d1e74b1188f137bb30b36bb3eb3cd5 100644
--- a/ui/file_manager/file_manager/background/js/background.js
+++ b/ui/file_manager/file_manager/background/js/background.js
@@ -348,8 +348,7 @@ function launchFileManager(opt_appState, opt_id, opt_type, opt_callback) {
/**
* @type {(undefined|
* {currentDirectoryURL: (string|undefined),
- * selectionURL: (string|undefined),
- * displayedId: (string|undefined)})}
+ * selectionURL: (string|undefined)})}
*/
(opt_appState);
@@ -380,9 +379,7 @@ function launchFileManager(opt_appState, opt_id, opt_type, opt_callback) {
contentWindow.appState.selectionURL) {
continue;
}
-
- AppWindowWrapper.focusOnDesktop(
- window.background.appWindows[key], opt_appState.displayedId);
+ window.background.appWindows[key].focus();
if (opt_callback)
opt_callback(key);
onTaskCompleted();
@@ -417,9 +414,7 @@ function launchFileManager(opt_appState, opt_id, opt_type, opt_callback) {
continue;
if (!window.background.appWindows[key].isMinimized()) {
- AppWindowWrapper.focusOnDesktop(
- window.background.appWindows[key],
- (opt_appState || {}).displayedId);
+ window.background.appWindows[key].focus();
if (opt_callback)
opt_callback(key);
onTaskCompleted();
@@ -431,9 +426,7 @@ function launchFileManager(opt_appState, opt_id, opt_type, opt_callback) {
if (!key.match(FILES_ID_PATTERN))
continue;
- AppWindowWrapper.focusOnDesktop(
- window.background.appWindows[key],
- (opt_appState || {}).displayedId);
+ window.background.appWindows[key].focus();
if (opt_callback)
opt_callback(key);
onTaskCompleted();
@@ -453,8 +446,7 @@ function launchFileManager(opt_appState, opt_id, opt_type, opt_callback) {
appId,
FILE_MANAGER_WINDOW_CREATE_OPTIONS);
appWindow.launch(opt_appState || {}, false, function() {
- AppWindowWrapper.focusOnDesktop(
- appWindow.rawAppWindow, (opt_appState || {}).displayedId);
+ appWindow.rawAppWindow.focus();
if (opt_callback)
opt_callback(appId);
onTaskCompleted();

Powered by Google App Engine
This is Rietveld 408576698