Sharing: Refactor SharingFCMSender to extract SendMessageViaSync [chromium/src : main]

0 views
Skip to first unread message

Wei Guo (Gerrit)

unread,
Apr 13, 2026, 8:40:10 PM (15 hours ago) Apr 13
to Tommy Nyquist, chromiu...@luci-project-accounts.iam.gserviceaccount.com, chromium...@chromium.org

Wei Guo voted Commit-Queue+1

Commit-Queue+1
Open in Gerrit

Related details

Attention set is empty
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Ic508a80bef82dd1213e8c6894d124a25e53d7c1d
Gerrit-Change-Number: 7759070
Gerrit-PatchSet: 4
Gerrit-Owner: Wei Guo <wei...@google.com>
Gerrit-Reviewer: Wei Guo <wei...@google.com>
Gerrit-CC: Tommy Nyquist <nyq...@chromium.org>
Gerrit-Comment-Date: Tue, 14 Apr 2026 00:40:01 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

Mikel Astiz (Gerrit)

unread,
4:33 AM (7 hours ago) 4:33 AM
to Wei Guo, Tommy Nyquist, chromiu...@luci-project-accounts.iam.gserviceaccount.com, chromium...@chromium.org
Attention needed from Wei Guo

Mikel Astiz voted and added 3 comments

Votes added by Mikel Astiz

Code-Review+1

3 comments

Patchset-level comments
File-level comment, Patchset 5 (Latest):
Mikel Astiz . resolved

Thanks!

File components/sharing_message/sharing_fcm_sender.cc
Line 246, Patchset 5 (Latest): fcm->set_priority(10);
Mikel Astiz . unresolved

Would it be possible to move the code above to the caller (`SendMessageToFcmTarget()`) and directly bind `SendMessageViaSync()` when invoking `EncryptMessage()`? Assuming this would allow removing `DoSendMessageToSenderIdTarget()` and `DoSendMessageToServerTarget()`, leading to `DoXXX()` functions being exclusively used for `SendMessageDelegate` overrides.

Line 270, Patchset 5 (Latest): specifics->set_payload(message);
Mikel Astiz . unresolved

Nit: could we also `std::move()` this to avoid copies, for consistency with the above?

Open in Gerrit

Related details

Attention is currently required from:
  • Wei Guo
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
  • requirement satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Ic508a80bef82dd1213e8c6894d124a25e53d7c1d
Gerrit-Change-Number: 7759070
Gerrit-PatchSet: 5
Gerrit-Owner: Wei Guo <wei...@google.com>
Gerrit-Reviewer: Mikel Astiz <mas...@chromium.org>
Gerrit-Attention: Wei Guo <wei...@google.com>
Gerrit-Comment-Date: Tue, 14 Apr 2026 08:33:30 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy
Reply all
Reply to author
Forward
0 new messages