Commit bdd8b4f0 authored by Bailey Berro's avatar Bailey Berro Committed by Commit Bot

Ensure metrics for Invalid Url report on failed mount

Fixes a bug where metrics were not recorded correctly for failed mounts
due to invalid urls.

Bug: chromium:902923
Change-Id: Iba8164d4869818a44faa10ee18503cdd1e24d424
Reviewed-on: https://chromium-review.googlesource.com/c/1340971Reviewed-by: default avatarZentaro Kavanagh <zentaro@chromium.org>
Commit-Queue: Bailey Berro <baileyberro@chromium.org>
Cr-Commit-Position: refs/heads/master@{#609052}
parent 52436ad7
......@@ -190,7 +190,8 @@ void SmbService::CallMount(const file_system_provider::MountOptions& options,
SmbUrl parsed_url(share_path.value());
if (!parsed_url.IsValid()) {
std::move(callback).Run(
FireMountCallback(
std::move(callback),
TranslateErrorToMountResult(base::File::Error::FILE_ERROR_INVALID_URL));
return;
}
......
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