New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 743250 link

Starred by 4 users

Issue metadata

Status: Verified
Owner:
Last visit > 30 days ago
Closed: Apr 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 2
Type: Bug
Proj-XR
Proj-XR-VR

Blocked on:
issue 779126



Sign in to add a comment

Defer 2D Data Saver promo

Project Member Reported by ddorwin@chromium.org, Jul 14 2017

Issue description

Chrome Version: 61.0.3156.4
OS: Android

What steps will reproduce the problem?
(1) While in the VR browser, trigger the Data Saver promo.

It's not clear what causes the promo. We should get explicit repro steps. I encountered it after uninstalling and installing Chrome Canary and using it a few times.

What is the expected result?
Ideally, the promo would be VR-compatible and could be displayed. (This will be necessary for standalone devices.)

In the meantime, however, we should defer the promo until the user is not in VR. That is probably a better time to present the user with an option anyway.

What happens instead?
The 2D UI is displayed across both eyes as shown in the attachment.

Please use labels and text to provide additional information.
I encountered this first in 2D then entered VR where I took the screenshot. While the result is not ideal, it's unlikely a user would do such a thing. However, unless there is already some explicit mechanism that covers VR, it's very likely that this could appear while in VR.

This popup is more likely to affect new Chrome users or users with new (VR-enabled) phones and those switching channels (i.e. to get new VR features).
 
Screenshot_20170714-104536.png
223 KB View Download

Comment 1 by bengr@chromium.org, Jul 18 2017

Owner: megjab...@chromium.org
Status: Assigned (was: Available)
Megan, let's defer the promo until the user is not in VR.
How are you enabling VR?
Owner: tedc...@chromium.org
This seems like an issue we'd have with the other promo dialogs and should come up with a uniform solution for. 
Cc: megjab...@chromium.org

Comment 5 by mdw@chromium.org, Jul 20 2017

Why is this a P1 bug? Are we launching something in M61 that requires a fix?

The VR browser is (planning on) launching in M61. We should at the very least make sure these popups don't show up while in VR. This is one of the last remaining popups we haven't yet disabled while in VR.
I'm out all next week or I'd pick this up, but for anybody wanting to pick this up, checking if we're currently in VR is as simple as calling VrShellDelegate.isInVr().

Comment 8 by mdw@chromium.org, Jul 21 2017

Given that approximately zero users in the target market for this promo are going to be using Chrome in VR mode, my proposal is to simply block the promo altogether when in VR mode (rather than deferring it), assuming that deferring it is harder than blocking. Please do not spend more than 5 minutes on this.

It's trivial for us to defer showing the promo, I'll land a cl for that. This won't cover the case where the the promo shows, and then the user enters VR mode. Sometimes that might not be a conscious decision by the user, but a race case. I saw this when I couldn't get the VR mode button to show up for me. I was called VrShellDelegate.enterVrIfNecessary() to force it on, and I found even when I prevented showing the promo using VrShellDelegate.isInVr(), we would still get an overlaid promo.

Comment 10 by bengr@chromium.org, Jul 26 2017

We need more specific steps to reproduce this problem in order to fix it.
Cc: vollick@chromium.org
Cc: -vollick@chromium.org tedc...@chromium.org
Owner: vollick@chromium.org
Assigning to VR to triage.

As megjablon@ mentioned in #9, we should be able to just simply defer the promo to the next start when not in VR by changing ChromeTabbedActivity#finishNativeInitialization:

https://chromium.googlesource.com/chromium/src/+/1e5c67abd6325c2c316fa9a9430b85079174f0d6/chrome/android/java/src/org/chromium/chrome/browser/ChromeTabbedActivity.java#478

We should find whatever signal that will tell us we are in VR (or the incoming intent will soon put us there) and add it to the list of signals that prevent promos in that session.

I do agree that this won't handle the case where you start chrome and then put it into the vr headset, but that is a larger issue where we might want to dismiss the promos but leave them able to be shown again, and I'm not sure if that works out of the box right now.
Owner: asimjour@chromium.org
Cc: vollick@chromium.org
Sorry that this fell off my radar. The deferral sounds quite reasonable. Beyond this bug, I certainly agree that we need a more holistic solution for what to do when extant UI is up when the user enters VR mode.
Labels: -M-61 M-64
Hey Amir, is this issue covered by any current ongoing efforts?
Project Member

Comment 17 by bugdroid1@chromium.org, Oct 12 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/27258706427eb5343128460b0e6f52bbbd0bdb81

commit 27258706427eb5343128460b0e6f52bbbd0bdb81
Author: Amirhossein Simjour <asimjour@chromium.org>
Date: Thu Oct 12 19:52:34 2017

VR: Defer 2D Data Saver promo when in VR

This covers the case that we know that we are in VR when
ChromeTabbedActivity#finishNativeInitialization. This also covers the case
that Chrome is lunched from inside of VR.

BUG= 743250 

Change-Id: I5576a6ef5073fc8e1bbaa23585f11aa2de4540ed
Reviewed-on: https://chromium-review.googlesource.com/713719
Reviewed-by: Ted Choc <tedchoc@chromium.org>
Commit-Queue: Amirhossein Simjour <asimjour@chromium.org>
Cr-Commit-Position: refs/heads/master@{#508396}
[modify] https://crrev.com/27258706427eb5343128460b0e6f52bbbd0bdb81/chrome/android/java/src/org/chromium/chrome/browser/ChromeTabbedActivity.java

Blockedon: 779126
Labels: -Pri-1 -M-64 M-65 Pri-2
The race condition is still there, but the main problem is resolved. I change the priority and move it to M65. It should be resolved when we can move 2D ui elements to VR.
Any updates here?
Labels: -M-65 M-66
Refreshed during triage.

Comment 22 by ericde@google.com, Mar 21 2018

Cc: bshe@chromium.org
Labels: -M-66 M-67 Hotlist-VRB-MVP
is this similar to the approach we're using for Boris/Sogou?
Amir, can you answer #22?
This is similar, but we have more control over this one. We can defer it and show it next time that we are in 2D
Labels: VR-standalone
Project Member

Comment 26 by bugdroid1@chromium.org, Apr 19 2018

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/17d6d246f25c79d658fc8ea4cb2575ae18d1882f

commit 17d6d246f25c79d658fc8ea4cb2575ae18d1882f
Author: Biao She <bshe@chromium.org>
Date: Thu Apr 19 17:02:12 2018

Fix potential race when decide if data reduction promo should show up in VR

Bug:  743250 
Change-Id: I34f0f60d52f3f5a72bc7dbb1c0647d737137180f
Reviewed-on: https://chromium-review.googlesource.com/1019541
Reviewed-by: Amirhossein Simjour <asimjour@chromium.org>
Reviewed-by: Yaron Friedman <yfriedman@chromium.org>
Commit-Queue: Biao She <bshe@chromium.org>
Cr-Commit-Position: refs/heads/master@{#552054}
[modify] https://crrev.com/17d6d246f25c79d658fc8ea4cb2575ae18d1882f/chrome/android/java/src/org/chromium/chrome/browser/ChromeTabbedActivity.java

Comment 27 by bshe@chromium.org, Apr 19 2018

Status: Fixed (was: Assigned)
The above Cl should make sure that the 2D data saver promo never shows up when Chrome cold launch.
Shouldn't it be merge-requested?

Comment 29 by bshe@chromium.org, Apr 19 2018

Labels: Merge-Request-67
only need to merge cl at comment 26
Project Member

Comment 30 by sheriffbot@chromium.org, Apr 20 2018

Labels: -Merge-Request-67 Merge-Approved-67 Hotlist-Merge-Approved
Your change meets the bar and is auto-approved for M67. Please go ahead and merge the CL to branch 3396 manually. Please contact milestone owner if you have questions.
Owners: cmasso@(Android), cmasso@(iOS), kbleicher@(ChromeOS), govind@(Desktop)

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Project Member

Comment 31 by bugdroid1@chromium.org, Apr 23 2018

Labels: -merge-approved-67 merge-merged-3396
The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/1b258301cd00b738c61efd47e178834a50d190c5

commit 1b258301cd00b738c61efd47e178834a50d190c5
Author: Biao She <bshe@chromium.org>
Date: Mon Apr 23 14:48:47 2018

Fix potential race when decide if data reduction promo should show up in VR

TBR=bshe@chromium.org

(cherry picked from commit 17d6d246f25c79d658fc8ea4cb2575ae18d1882f)

Bug:  743250 
Change-Id: I34f0f60d52f3f5a72bc7dbb1c0647d737137180f
Reviewed-on: https://chromium-review.googlesource.com/1019541
Reviewed-by: Amirhossein Simjour <asimjour@chromium.org>
Reviewed-by: Yaron Friedman <yfriedman@chromium.org>
Commit-Queue: Biao She <bshe@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#552054}
Reviewed-on: https://chromium-review.googlesource.com/1023713
Reviewed-by: Biao She <bshe@chromium.org>
Cr-Commit-Position: refs/branch-heads/3396@{#207}
Cr-Branched-From: 9ef2aa869bc7bc0c089e255d698cca6e47d6b038-refs/heads/master@{#550428}
[modify] https://crrev.com/1b258301cd00b738c61efd47e178834a50d190c5/chrome/android/java/src/org/chromium/chrome/browser/ChromeTabbedActivity.java

Owner: bshe@chromium.org
Labels: Test-Complete
Status: Verified (was: Fixed)
Fix verified on build 67.0.3396.29 beta.

Sign in to add a comment