refactor: make shell.ShowItemInFolder asynchronous (#17121)
* fix: add scoped_blocking_calls to platform_win
1191582
* feat: make ShowItemInFolder async
* address feedback from review
* fix build
This commit is contained in:
parent
08066581b0
commit
5ecda17c7a
5 changed files with 40 additions and 39 deletions
|
@ -69,12 +69,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.
|
||||
bool ShowItemInFolder(const base::FilePath& full_path) {
|
||||
void ShowItemInFolder(const base::FilePath& full_path) {
|
||||
base::FilePath dir = full_path.DirName();
|
||||
if (!base::DirectoryExists(dir))
|
||||
return false;
|
||||
return;
|
||||
|
||||
return XDGOpen(dir.value(), false);
|
||||
XDGOpen(dir.value(), false);
|
||||
}
|
||||
|
||||
bool OpenItem(const base::FilePath& full_path) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue