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

Unified Diff: chrome/browser/resources/file_manager/js/file_manager_commands.js

Issue 24026002: Files.app: FileManager.isFolderShortcutsEnabled() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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 | « chrome/browser/resources/file_manager/js/file_manager.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/file_manager/js/file_manager_commands.js
diff --git a/chrome/browser/resources/file_manager/js/file_manager_commands.js b/chrome/browser/resources/file_manager/js/file_manager_commands.js
index 964af706b06878fbee6098b430200a212440721b..23170fcc39b0fac20367c77586a75a99c52bdb18 100644
--- a/chrome/browser/resources/file_manager/js/file_manager_commands.js
+++ b/chrome/browser/resources/file_manager/js/file_manager_commands.js
@@ -609,10 +609,8 @@ Commands.createFolderShortcutCommand = {
*/
canExecute: function(event, fileManager) {
var target = event.target;
- // TODO(yoshiki): remove this after launching folder shortcuts feature.
- if (!fileManager.isFolderShortcutsEnabled() ||
- (!target instanceof NavigationListItem &&
- !target instanceof DirectoryItem)) {
+ if (!target instanceof NavigationListItem &&
+ !target instanceof DirectoryItem) {
event.command.setHidden(true);
return;
}
@@ -660,10 +658,8 @@ Commands.removeFolderShortcutCommand = {
*/
canExecute: function(event, fileManager) {
var target = event.target;
- // TODO(yoshiki): remove this after launching folder shortcut feature.
- if (!fileManager.isFolderShortcutsEnabled() ||
- (!target instanceof NavigationListItem &&
- !target instanceof DirectoryItem)) {
+ if (!target instanceof NavigationListItem &&
+ !target instanceof DirectoryItem) {
event.command.setHidden(true);
return;
}
« no previous file with comments | « chrome/browser/resources/file_manager/js/file_manager.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698