Commit 68336259 authored by Wei Lee's avatar Wei Lee Committed by Chromium LUCI CQ

[CCA] Don't send broadcast when capturing on platform app version

Currently the path to send broadcast when capturing only works on SWA.
Since we are about to deprecate the platform app version of CCA, it is
okay to only support this function on SWA but not platform app.

Bug: b/173559007
Test: Manually
Change-Id: Id33b6a88c4adafaf5725c5bd874b3d80166b9012
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2592295
Auto-Submit: Wei Lee <wtlee@chromium.org>
Commit-Queue: Shik Chen <shik@chromium.org>
Reviewed-by: default avatarShik Chen <shik@chromium.org>
Cr-Commit-Position: refs/heads/master@{#837864}
parent ee2eb68c
......@@ -195,6 +195,10 @@ void CameraAppHelperImpl::GetWindowStateController(
void CameraAppHelperImpl::SendNewCaptureBroadcast(bool is_video,
const std::string& name) {
// This function is only supported on SWA.
if (camera_app_ui_ == nullptr) {
return;
}
auto file_path = camera_app_ui_->delegate()->GetFilePathInArcByName(name);
if (file_path.empty()) {
LOG(ERROR) << "Drop the broadcast request due to invalid file path in ARC "
......
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