| Index: ui/file_manager/file_manager/foreground/js/main_window_component.js
|
| diff --git a/ui/file_manager/file_manager/foreground/js/main_window_component.js b/ui/file_manager/file_manager/foreground/js/main_window_component.js
|
| index 8c5576b39fa4c45aecc0fe8ea37d450b188954be..ae1a11d326a1bfa05699de943269799b10a6c762 100644
|
| --- a/ui/file_manager/file_manager/foreground/js/main_window_component.js
|
| +++ b/ui/file_manager/file_manager/foreground/js/main_window_component.js
|
| @@ -411,13 +411,22 @@ MainWindowComponent.prototype.onDirectoryChanged_ = function(event) {
|
| this.ui_.element.removeAttribute('unformatted');
|
| }
|
|
|
| - // Updates UI.
|
| - if (this.dialogType_ === DialogType.FULL_PAGE && newVolumeInfo)
|
| - document.title = newVolumeInfo.label;
|
| - if (event.newDirEntry)
|
| + if (event.newDirEntry) {
|
| this.ui_.locationLine.show(event.newDirEntry);
|
| - else
|
| + // Updates UI.
|
| + if (this.dialogType_ === DialogType.FULL_PAGE) {
|
| + var locationInfo = this.volumeManager_.getLocationInfo(event.newDirEntry);
|
| + if (locationInfo) {
|
| + document.title = locationInfo.isRootEntry
|
| + ? util.getRootTypeLabel(locationInfo) : event.newDirEntry.name;
|
| + } else {
|
| + console.error('Could not find location info for entry: '
|
| + + event.newDirEntry.fullPath);
|
| + }
|
| + }
|
| + } else {
|
| this.ui_.locationLine.hide();
|
| + }
|
| };
|
|
|
| /**
|
|
|