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

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

Issue 1056433003: Add button to add new FSP services to Files app. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cleaned up. Created 5 years, 9 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.js
diff --git a/ui/file_manager/file_manager/foreground/js/file_manager.js b/ui/file_manager/file_manager/foreground/js/file_manager.js
index 2ccc3b9685154e3cbe621104c76a61256a462eeb..3466119cb8a1664b154dbbd4153ba0105391529d 100644
--- a/ui/file_manager/file_manager/foreground/js/file_manager.js
+++ b/ui/file_manager/file_manager/foreground/js/file_manager.js
@@ -946,7 +946,14 @@ FileManager.prototype = /** @struct */ {
assert(this.metadataModel_),
fakeEntriesVisible);
directoryTree.dataModel = new NavigationListModel(
- this.volumeManager_, this.folderShortcutsModel_);
+ this.volumeManager_,
+ this.folderShortcutsModel_,
+ new NavigationModelCommandItem(
+ str('ADD_NEW_SERVICES_BUTTON_LABEL'),
+ 'add' /* icon */,
+ function() {
+ this.ui.suggestAppsDialog.showProviders(function() {});
+ }.bind(this)));
this.ui_.initDirectoryTree(directoryTree);
};

Powered by Google App Engine
This is Rietveld 408576698