Return boolean from shell.showItemInFolder

This commit is contained in:
Kevin Sawicki 2016-09-12 14:22:29 -07:00
parent 05043432dd
commit 72558654ef
5 changed files with 38 additions and 37 deletions

View file

@ -59,12 +59,12 @@ namespace platform_util {
// TODO(estade): It would be nice to be able to select the file in the file
// manager, but that probably requires extending xdg-open. For now just
// show the folder.
void ShowItemInFolder(const base::FilePath& full_path) {
bool ShowItemInFolder(const base::FilePath& full_path) {
base::FilePath dir = full_path.DirName();
if (!base::DirectoryExists(dir))
return;
return false;
XDGOpen(dir.value(), true);
return XDGOpen(dir.value(), true);
}
void OpenItem(const base::FilePath& full_path) {