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

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

Issue 1134213006: Hide the "Add new services" menu from Files app when running as dialog. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed tests. Created 5 years, 7 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
« no previous file with comments | « no previous file | ui/file_manager/file_manager/foreground/js/file_manager_commands.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 3d4aa7ea7518ec472eeb6479ae216e6964c7ccc1..9d3bf0fda4bfc6f6dcf8cf3c90c6a5828808f919 100644
--- a/ui/file_manager/file_manager/foreground/js/file_manager.js
+++ b/ui/file_manager/file_manager/foreground/js/file_manager.js
@@ -996,10 +996,11 @@ FileManager.prototype = /** @struct */ {
directoryTree.dataModel = new NavigationListModel(
assert(this.volumeManager_),
assert(this.folderShortcutsModel_),
- new NavigationModelMenuItem(
- str('ADD_NEW_SERVICES_BUTTON_LABEL'),
- '#add-new-services-menu',
- 'add-new-services'));
+ this.dialogType === DialogType.FULL_PAGE ?
+ new NavigationModelMenuItem(
+ str('ADD_NEW_SERVICES_BUTTON_LABEL'),
+ '#add-new-services-menu',
+ 'add-new-services') : null);
this.ui_.initDirectoryTree(directoryTree);
};
« no previous file with comments | « no previous file | ui/file_manager/file_manager/foreground/js/file_manager_commands.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698