Return boolean from shell.openItem
This commit is contained in:
parent
72558654ef
commit
55eab8e385
5 changed files with 18 additions and 16 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue