Commit ad11084a authored by Amirhossein Simjour's avatar Amirhossein Simjour Committed by Commit Bot

Close cast dialog in VR

Cast dialog was enabled behind a flag in VR. It was a mistake since,
the same flag is used to enable some other popups. We should enable
cast icon once we VR can support this dilog.

Bug: 822090
Change-Id: I6c414f85d7b24a0f5dfaea4d37d541268abb4556
Reviewed-on: https://chromium-review.googlesource.com/1006037Reviewed-by: default avatarMounir Lamouri <mlamouri@chromium.org>
Commit-Queue: Amirhossein Simjour <asimjour@chromium.org>
Cr-Commit-Position: refs/heads/master@{#549675}
parent 65cf3f02
...@@ -141,9 +141,7 @@ MediaRouterDialogControllerAndroid::~MediaRouterDialogControllerAndroid() { ...@@ -141,9 +141,7 @@ MediaRouterDialogControllerAndroid::~MediaRouterDialogControllerAndroid() {
void MediaRouterDialogControllerAndroid::CreateMediaRouterDialog() { void MediaRouterDialogControllerAndroid::CreateMediaRouterDialog() {
// TODO(crbug.com/736568): Re-enable dialog in VR. // TODO(crbug.com/736568): Re-enable dialog in VR.
if (vr::VrTabHelper::IsInVr(initiator()) && if (vr::VrTabHelper::IsInVr(initiator())) {
!base::FeatureList::IsEnabled(
chrome::android::kVrBrowsingNativeAndroidUi)) {
CancelPresentationRequest(); CancelPresentationRequest();
return; return;
} }
......
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