class SharingFCMSender : public syncer::SyncServiceObserver {plantreeThis class should be renamed. It's confusing for it to be called SharingFCMSender when it also handles iOS/Chime push messages.
Hira MahmoodGood point. Will do.
Not all FCM messages are push notification messages, some are also data messages. WDYT about naming the class SharingChannelSender since the class now handles both FCM and iOS Push channels?
void SharingFCMSender::SendUnencryptedMessageToDevice(plantreeThis function assumes the iOS/chime push message type so we should rename it to reflect that now that it's being moved out of SharingIOSPushSender.
Same for `SendEncryptedMessageToDevice` above, it assumes an FCM message (creates and passes in fcm_configuration) so we should rename the function.
Hira MahmoodGotcha. Will update.
Thanks!
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
class SharingFCMSender : public syncer::SyncServiceObserver {plantreeThis class should be renamed. It's confusing for it to be called SharingFCMSender when it also handles iOS/Chime push messages.
Hira MahmoodGood point. Will do.
Not all FCM messages are push notification messages, some are also data messages. WDYT about naming the class SharingChannelSender since the class now handles both FCM and iOS Push channels?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
class SharingFCMSender : public syncer::SyncServiceObserver {plantreeThis class should be renamed. It's confusing for it to be called SharingFCMSender when it also handles iOS/Chime push messages.
Hira MahmoodGood point. Will do.
plantreeNot all FCM messages are push notification messages, some are also data messages. WDYT about naming the class SharingChannelSender since the class now handles both FCM and iOS Push channels?
Good point — renamed to SharingChannelSender.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
still lgtm % comment, thanks!
std::make_unique<SharingFCMHandler>(The parameters and comments here don't match the signature of `SharingFCMHandler`'s constructor. It expects `gcm_driver`, `device_info_tracker`, `sharing_channel_sender`, and `handler_registry`.
```suggestion
std::make_unique<SharingFCMHandler>(
/*gcm_driver=*/nullptr,
/*device_info_tracker=*/nullptr,
/*sharing_channel_sender=*/nullptr,
/*handler_registry=*/nullptr),
```
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Removing myself due to overlapping ownership. Let me know if I am needed on this CL; thanks!
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
std::make_unique<SharingFCMHandler>(The parameters and comments here don't match the signature of `SharingFCMHandler`'s constructor. It expects `gcm_driver`, `device_info_tracker`, `sharing_channel_sender`, and `handler_registry`.
```suggestion
std::make_unique<SharingFCMHandler>(
/*gcm_driver=*/nullptr,
/*device_info_tracker=*/nullptr,
/*sharing_channel_sender=*/nullptr,
/*handler_registry=*/nullptr),
```
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Have resolved the conflicts, please take a look. Thanks. mmra...@google.com hiram...@google.com
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Have resolved the conflicts, please take a look. Thanks. mmra...@google.com hiram...@google.com
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
std::make_unique<SharingFCMHandler>(plantreeThe parameters and comments here don't match the signature of `SharingFCMHandler`'s constructor. It expects `gcm_driver`, `device_info_tracker`, `sharing_channel_sender`, and `handler_registry`.
```suggestion
std::make_unique<SharingFCMHandler>(
/*gcm_driver=*/nullptr,
/*device_info_tracker=*/nullptr,
/*sharing_channel_sender=*/nullptr,
/*handler_registry=*/nullptr),
```
That makes sense and thanks for pointing it out.
Marked as resolved.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
[Sharing] Remove SharingMessage delegate type and rename SharingFCMSender
SharingMessageSender previously dispatched message sending through a
SendMessageDelegate abstraction keyed by a DelegateType enum (kFCM,
kIOSPush). The abstraction no longer pulls its weight: each delegate
exposes one method specific to its type and they can all live in a
single class.
Merge SharingIOSPushSender into SharingFCMSender so a single class
handles both encrypted FCM messages and unencrypted iOS/Chime push
messages, then rename it to SharingChannelSender to reflect the broader
responsibility. Drop the SendMessageDelegate / DelegateType machinery
and construct SharingMessageSender with a single owned
SharingChannelSender instead. Also rename SendEncryptedMessageToDevice /
SendUnencryptedMessageToDevice to SendFcmMessageToDevice /
SendIosPushMessageToDevice so the channel they target is explicit.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |