Commit e1a38d63 authored by Anand K. Mistry's avatar Anand K. Mistry Committed by Commit Bot

[directorytree] Remove 'FolderShortcut' UMA on item that is not a shortcut

Bug: None
Change-Id: I028af5cfa3e1481d3b40852529f3b2aea0d38308
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2096065Reviewed-by: default avatarLuciano Pacheco <lucmult@chromium.org>
Commit-Queue: Anand Mistry <amistry@chromium.org>
Cr-Commit-Position: refs/heads/master@{#748587}
parent 9ded1de0
...@@ -1170,7 +1170,6 @@ class VolumeItem extends DirectoryItem { ...@@ -1170,7 +1170,6 @@ class VolumeItem extends DirectoryItem {
const onEntryResolved = (entry) => { const onEntryResolved = (entry) => {
// Changes directory to the model item's root directory if needed. // Changes directory to the model item's root directory if needed.
if (!util.isSameEntry(directoryModel.getCurrentDirEntry(), entry)) { if (!util.isSameEntry(directoryModel.getCurrentDirEntry(), entry)) {
metrics.recordUserAction('FolderShortcut.Navigate');
directoryModel.changeDirectoryEntry(entry); directoryModel.changeDirectoryEntry(entry);
} }
// In case of failure in resolveDisplayRoot() in the volume's constructor, // In case of failure in resolveDisplayRoot() in the volume's constructor,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment