Skip to content

Commit

Permalink
Device: Remove global ReportBadMessage(),GetMessageCallback()
Browse files Browse the repository at this point in the history
This patch migrates the global ReportBadMessage(), GetMessageCallback()
to their respective equivalent on mojo::Receiver.

Bug: 1213505
Change-Id: I9d8f854b1910540de991a7bb36e48e08f250fe4b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3192882
Reviewed-by: Reilly Grant <reillyg@chromium.org>
Commit-Queue: Reilly Grant <reillyg@chromium.org>
Cr-Commit-Position: refs/heads/main@{#927536}
  • Loading branch information
Abhinav Vij authored and Chromium LUCI CQ committed Oct 2, 2021
1 parent 2a22ff3 commit df95f79
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ Aaron Randolph <aaron.randolph@gmail.com>
Aaryaman Vasishta <jem456.vasishta@gmail.com>
Abdu Ameen <abdu.ameen000@gmail.com>
Abhijeet Kandalkar <abhijeet.k@samsung.com>
Abhinav Vij <abhinav.vij@samsung.com>
Abhishek Agarwal <abhishek.a21@samsung.com>
Abhishek Kanike <abhishek.ka@samsung.com>
Abhishek Singh <abhi.rathore@samsung.com>
Expand Down
5 changes: 3 additions & 2 deletions device/vr/orientation/orientation_session.cc
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,15 @@ void VROrientationSession::GetEnvironmentIntegrationProvider(
environment_provider) {
// Environment integration is not supported. This call should not
// be made on this device.
mojo::ReportBadMessage("Environment integration is not supported.");
magic_window_receiver_.ReportBadMessage(
"Environment integration is not supported.");
}

void VROrientationSession::SetInputSourceButtonListener(
mojo::PendingAssociatedRemote<device::mojom::XRInputSourceButtonListener>) {
// Input eventing is not supported. This call should not
// be made on this device.
mojo::ReportBadMessage("Input eventing is not supported.");
magic_window_receiver_.ReportBadMessage("Input eventing is not supported.");
}

// XRSessionController
Expand Down

0 comments on commit df95f79

Please sign in to comment.