Return boolean from shell.openItem

This commit is contained in:
Kevin Sawicki 2016-09-12 14:29:06 -07:00
parent 72558654ef
commit 55eab8e385
5 changed files with 18 additions and 16 deletions

View file

@ -292,11 +292,11 @@ bool ShowItemInFolder(const base::FilePath& full_path) {
}
}
void OpenItem(const base::FilePath& full_path) {
bool OpenItem(const base::FilePath& full_path) {
if (base::DirectoryExists(full_path))
ui::win::OpenFolderViaShell(full_path);
return ui::win::OpenFolderViaShell(full_path);
else
ui::win::OpenFileViaShell(full_path);
return ui::win::OpenFileViaShell(full_path);
}
bool OpenExternal(const base::string16& url, bool activate) {