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

Use windows format in discovery results

Switches to using the windows format of the smb url (\\server\share) rather
than the smb://server/share format since it's more familiar to users.

Bug: chromium:889289
Change-Id: Ic9118980e05cf367b4049b426313408316472006
Reviewed-on: https://chromium-review.googlesource.com/c/1256112
Commit-Queue: Bailey Berro <baileyberro@chromium.org>
Reviewed-by: default avatarScott Chen <scottchen@chromium.org>
Cr-Commit-Position: refs/heads/master@{#596385}
parent cd6c0632
......@@ -26,7 +26,7 @@ smb_client::SmbService* GetSmbService(Profile* profile) {
base::Value BuildShareList(const std::vector<smb_client::SmbUrl>& shares) {
base::Value shares_list(base::Value::Type::LIST);
for (const auto& share : shares) {
shares_list.GetList().push_back(base::Value(share.ToString()));
shares_list.GetList().push_back(base::Value(share.GetWindowsUNCString()));
}
return shares_list;
}
......
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