Commit 505d3c69 authored by Richard Knoll's avatar Richard Knoll Committed by Commit Bot

[Nearby] Create crbug entries for TODOs

crbug.com/1123934: Handle errors in WebUI
crbug.com/1123942: Pass attachments to WebUI
crbug.com/1123943: Pass contact name to WebUI

Bug: None
Change-Id: I5b6c1552f730733408337373f995ad05c10e9dfe
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2389204Reviewed-by: default avatarJames Vecore <vecore@google.com>
Commit-Queue: Richard Knoll <knollr@chromium.org>
Cr-Commit-Position: refs/heads/master@{#803885}
parent e89f7618
...@@ -30,7 +30,7 @@ base::Optional<nearby_share::mojom::TransferStatus> GetTransferStatus( ...@@ -30,7 +30,7 @@ base::Optional<nearby_share::mojom::TransferStatus> GetTransferStatus(
break; break;
} }
// TODO(knollr): Show error if transfer_metadata.is_final_status(). // TODO(crbug.com/1123934): Show error if transfer_metadata.is_final_status().
// Ignore all other transfer status updates. // Ignore all other transfer status updates.
return base::nullopt; return base::nullopt;
......
...@@ -241,7 +241,7 @@ void NearbyProcessManager::LaunchNewProcess() { ...@@ -241,7 +241,7 @@ void NearbyProcessManager::LaunchNewProcess() {
StopProcess(active_profile_); StopProcess(active_profile_);
// Launch a new sandboxed process. // Launch a new sandboxed process.
// TODO(knollr): Set process name to "Nearby Sharing". // TODO(crbug.com/1095650): Set process name to "Nearby Sharing".
BindSharingProcess(sharing::LaunchSharing()); BindSharingProcess(sharing::LaunchSharing());
} }
......
...@@ -48,18 +48,14 @@ std::vector<base::FilePath> ResolveFileUrls( ...@@ -48,18 +48,14 @@ std::vector<base::FilePath> ResolveFileUrls(
std::vector<std::unique_ptr<Attachment>> CreateAttachmentsFromIntent( std::vector<std::unique_ptr<Attachment>> CreateAttachmentsFromIntent(
Profile* profile, Profile* profile,
apps::mojom::IntentPtr intent) { apps::mojom::IntentPtr intent) {
DCHECK(intent->file_urls);
std::vector<std::unique_ptr<Attachment>> attachments; std::vector<std::unique_ptr<Attachment>> attachments;
std::vector<base::FilePath> file_paths =
// TODO(knollr): Support other attachment types. ResolveFileUrls(profile, *intent->file_urls);
if (intent->file_urls) { for (auto& file_path : file_paths) {
std::vector<base::FilePath> file_paths = attachments.push_back(
ResolveFileUrls(profile, *intent->file_urls); std::make_unique<FileAttachment>(std::move(file_path)));
for (auto& file_path : file_paths) {
attachments.push_back(
std::make_unique<FileAttachment>(std::move(file_path)));
}
} }
return attachments; return attachments;
} }
......
...@@ -153,7 +153,7 @@ Polymer({ ...@@ -153,7 +153,7 @@ Polymer({
* @private * @private
*/ */
contactName_() { contactName_() {
// TODO(knollr): Get contact name from ShareTarget. // TODO(crbug.com/1123943): Get contact name from ShareTarget.
const contactName = null; const contactName = null;
if (!contactName) { if (!contactName) {
return ''; return '';
...@@ -165,7 +165,7 @@ Polymer({ ...@@ -165,7 +165,7 @@ Polymer({
onAcceptTap_() { onAcceptTap_() {
this.confirmationManager.accept().then( this.confirmationManager.accept().then(
result => { result => {
// TODO(knollr): Show error if !result.success // TODO(crbug.com/1123934): Show error if !result.success
}); });
}, },
...@@ -188,7 +188,7 @@ Polymer({ ...@@ -188,7 +188,7 @@ Polymer({
* @private * @private
*/ */
attachmentTitle_() { attachmentTitle_() {
// TODO(knollr): Pass attachments to UI. // TODO(crbug.com/1123942): Pass attachments to UI.
return 'Unknown file'; return 'Unknown file';
}, },
}); });
...@@ -123,7 +123,7 @@ Polymer({ ...@@ -123,7 +123,7 @@ Polymer({
.startDiscovery(this.mojoEventTarget_.$.bindNewPipeAndPassRemote()) .startDiscovery(this.mojoEventTarget_.$.bindNewPipeAndPassRemote())
.then(response => { .then(response => {
if (!response.success) { if (!response.success) {
// TODO(knollr): Show error. // TODO(crbug.com/1123934): Show error.
return; return;
} }
}); });
...@@ -196,7 +196,7 @@ Polymer({ ...@@ -196,7 +196,7 @@ Polymer({
const {result, transferUpdateListener, confirmationManager} = const {result, transferUpdateListener, confirmationManager} =
response; response;
if (result !== nearbyShare.mojom.SelectShareTargetResult.kOk) { if (result !== nearbyShare.mojom.SelectShareTargetResult.kOk) {
// TODO(knollr): Show error. // TODO(crbug.com/crbug.com/1123934): Show error.
return; return;
} }
...@@ -249,7 +249,7 @@ Polymer({ ...@@ -249,7 +249,7 @@ Polymer({
* @private * @private
*/ */
attachmentTitle_() { attachmentTitle_() {
// TODO(knollr): Pass attachments to UI. // TODO(crbug.com/1123942): Pass attachments to UI.
return 'Unknown file'; return 'Unknown file';
}, },
}); });
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