Commit 5953386c authored by Joel Hockey's avatar Joel Hockey Committed by Commit Bot

Settings WebUI: Log error in C++ backend when crostini unshare path fails.

Bug: 907256
Change-Id: If223956a330497b4b0318f91e4ea6c941d94b5aa
Reviewed-on: https://chromium-review.googlesource.com/c/1345377
Commit-Queue: Joel Hockey <joelhockey@chromium.org>
Reviewed-by: default avatarDemetrios Papadopoulos <dpapad@chromium.org>
Cr-Commit-Position: refs/heads/master@{#609890}
parent d9b9bab1
......@@ -78,7 +78,14 @@ void CrostiniHandler::HandleRemoveCrostiniSharedPath(
crostini::CrostiniSharePath::GetForProfile(profile_)->UnsharePath(
crostini::kCrostiniDefaultVmName, base::FilePath(path),
base::DoNothing());
base::BindOnce(
[](const std::string& path, bool result, std::string failure_reason) {
if (!result) {
LOG(ERROR) << "Error unsharing " << path << ": "
<< failure_reason;
}
},
path));
}
} // namespace settings
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment