Commit a10c3b6f authored by Kyle Milka's avatar Kyle Milka Committed by Commit Bot

[Sharing Hub] Re-add a few user actions

These got lost while rebasing the last few CLs.

Bug: 1009124
Change-Id: I85daee52a6506d1b21d1e9c276ca5dd2de4a0443
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2080468Reviewed-by: default avatarKristi Park <kristipark@chromium.org>
Commit-Queue: Kyle Milka <kmilka@chromium.org>
Cr-Commit-Position: refs/heads/master@{#745601}
parent f145135d
......@@ -82,6 +82,7 @@ public class ShareSheetCoordinator {
activity.getResources().getString(R.string.sharing_screenshot),
(shareParams)
-> {
RecordUserAction.record("SharingHubAndroid.ScreenshotSelected");
mBottomSheetController.hideContent(bottomSheet, true);
Tab tab = mActivityTabProvider.get();
ScreenshotCoordinator screenshotCoordinator =
......@@ -96,6 +97,7 @@ public class ShareSheetCoordinator {
PropertyModel copyPropertyModel = mPropertyModelBuilder.createPropertyModel(
AppCompatResources.getDrawable(activity, R.drawable.ic_content_copy_black),
activity.getResources().getString(R.string.sharing_copy_url), (params) -> {
RecordUserAction.record("SharingHubAndroid.CopyURLSelected");
mBottomSheetController.hideContent(bottomSheet, true);
Tab tab = mActivityTabProvider.get();
NavigationEntry entry =
......@@ -139,6 +141,7 @@ public class ShareSheetCoordinator {
activity.getResources().getString(R.string.qr_code_share_icon_label),
(currentActivity)
-> {
RecordUserAction.record("SharingHubAndroid.QRCodeSelected");
mBottomSheetController.hideContent(bottomSheet, true);
QrCodeCoordinator qrCodeCoordinator = new QrCodeCoordinator(activity);
qrCodeCoordinator.show();
......
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