Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(411)

Issue 2887383002: Show an infobar prompting the user to enter feedback when they exit VR (Closed)

Created:
3 years, 7 months ago by ymalik
Modified:
3 years, 7 months ago
CC:
agrieve+watch_chromium.org, asvitkine+watch_chromium.org, chromium-reviews, feature-vr-reviews_chromium.org, joshcarpenter
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Show an infobar prompting the user to enter feedback when they exit VR Follow-up work - Trigger the right Feedback activity - Control frequency of feedback via Finch BUG=706438 Review-Url: https://codereview.chromium.org/2887383002 Cr-Commit-Position: refs/heads/master@{#473705} Committed: https://chromium.googlesource.com/chromium/src/+/bce55d7b55d0b8da8b65315b255e17ba36bef5c8

Patch Set 1 #

Patch Set 2 : nits #

Total comments: 13

Patch Set 3 : address mike's comments #

Patch Set 4 : Fix merge conflicts #

Total comments: 2

Patch Set 5 : add comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+374 lines, -20 lines) Patch
M chrome/android/BUILD.gn View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
A chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrFeedbackStatus.java View 1 1 chunk +49 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellDelegate.java View 1 2 3 4 16 chunks +95 lines, -11 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellImpl.java View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M chrome/android/java_sources.gni View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
A chrome/android/javatests/src/org/chromium/chrome/browser/vr_shell/VrFeedbackInfoBarTest.java View 1 2 1 chunk +211 lines, -0 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/vr_shell/VrShellNavigationTest.java View 1 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/vr_shell/VrUtils.java View 1 2 3 4 3 chunks +7 lines, -5 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/vr_shell/WebVrTest.java View 3 chunks +3 lines, -3 lines 0 comments Download
M components/infobars/core/infobar_delegate.h View 1 chunk +1 line, -0 lines 0 comments Download
M tools/metrics/histograms/enums.xml View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 50 (18 generated)
ymalik
PTAL :) mthiesse for infobar logic bsheedy for test
3 years, 7 months ago (2017-05-18 17:13:14 UTC) #2
amp
https://codereview.chromium.org/2887383002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrFeedbackStatus.java File chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrFeedbackStatus.java (right): https://codereview.chromium.org/2887383002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrFeedbackStatus.java#newcode21 chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrFeedbackStatus.java:21: ContextUtils.getAppSharedPreferences() Does this result in a syncable preferance, or ...
3 years, 7 months ago (2017-05-18 17:32:41 UTC) #3
mthiesse
https://codereview.chromium.org/2887383002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrFeedbackStatus.java File chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrFeedbackStatus.java (right): https://codereview.chromium.org/2887383002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrFeedbackStatus.java#newcode31 chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrFeedbackStatus.java:31: return ContextUtils.getAppSharedPreferences().getBoolean(VR_FEEDBACK_OPT_OUT, false); I think at least on pre-N ...
3 years, 7 months ago (2017-05-18 17:44:41 UTC) #4
bsheedy
Tests LGTM, but added a few notes. https://codereview.chromium.org/2887383002/diff/20001/chrome/android/javatests/src/org/chromium/chrome/browser/vr_shell/VrFeedbackTest.java File chrome/android/javatests/src/org/chromium/chrome/browser/vr_shell/VrFeedbackTest.java (right): https://codereview.chromium.org/2887383002/diff/20001/chrome/android/javatests/src/org/chromium/chrome/browser/vr_shell/VrFeedbackTest.java#newcode27 chrome/android/javatests/src/org/chromium/chrome/browser/vr_shell/VrFeedbackTest.java:27: import org.chromium.chrome.test.util.InfoBarUtil; ...
3 years, 7 months ago (2017-05-18 17:49:27 UTC) #5
ymalik
mthiesse, bsheedy, PTAL :) https://codereview.chromium.org/2887383002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrFeedbackStatus.java File chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrFeedbackStatus.java (right): https://codereview.chromium.org/2887383002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrFeedbackStatus.java#newcode21 chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrFeedbackStatus.java:21: ContextUtils.getAppSharedPreferences() On 2017/05/18 17:32:40, amp ...
3 years, 7 months ago (2017-05-18 19:15:18 UTC) #6
mthiesse
vr_shell/ lgtm
3 years, 7 months ago (2017-05-18 19:47:45 UTC) #7
bsheedy
https://codereview.chromium.org/2887383002/diff/20001/chrome/android/javatests/src/org/chromium/chrome/browser/vr_shell/VrUtils.java File chrome/android/javatests/src/org/chromium/chrome/browser/vr_shell/VrUtils.java (right): https://codereview.chromium.org/2887383002/diff/20001/chrome/android/javatests/src/org/chromium/chrome/browser/vr_shell/VrUtils.java#newcode153 chrome/android/javatests/src/org/chromium/chrome/browser/vr_shell/VrUtils.java:153: // TODO(ymalik): This will return true if any infobar ...
3 years, 7 months ago (2017-05-18 20:18:39 UTC) #8
ymalik
On 2017/05/18 20:18:39, bsheedy wrote: > https://codereview.chromium.org/2887383002/diff/20001/chrome/android/javatests/src/org/chromium/chrome/browser/vr_shell/VrUtils.java > File > chrome/android/javatests/src/org/chromium/chrome/browser/vr_shell/VrUtils.java > (right): > > ...
3 years, 7 months ago (2017-05-18 22:33:55 UTC) #9
ymalik
+pkasting for components infobar_delegate.h
3 years, 7 months ago (2017-05-18 22:38:37 UTC) #12
ymalik
+tedchoc for BUILD.gn
3 years, 7 months ago (2017-05-18 22:41:26 UTC) #14
Peter Kasting
An infobar feels like a questionable UI surface for this. Not only are we trying ...
3 years, 7 months ago (2017-05-19 02:12:09 UTC) #15
ymalik
On 2017/05/19 02:12:09, Peter Kasting wrote: > An infobar feels like a questionable UI surface ...
3 years, 7 months ago (2017-05-19 02:28:40 UTC) #16
Peter Kasting
Thanks for sharing that detail. I had read the bug report looking for some of ...
3 years, 7 months ago (2017-05-19 05:59:07 UTC) #17
ymalik
On 2017/05/19 05:59:07, Peter Kasting wrote: > Thanks for sharing that detail. I had read ...
3 years, 7 months ago (2017-05-19 14:22:10 UTC) #19
ymalik
@mthiesse, PTAL after resolving merge conflicts.
3 years, 7 months ago (2017-05-19 20:47:43 UTC) #26
ymalik
@mthiesse, PTAL after resolving merge conflicts.
3 years, 7 months ago (2017-05-19 20:47:44 UTC) #27
Ted C
lgtm
3 years, 7 months ago (2017-05-19 21:26:58 UTC) #28
mthiesse
https://codereview.chromium.org/2887383002/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellDelegate.java File chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellDelegate.java (right): https://codereview.chromium.org/2887383002/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellDelegate.java#newcode692 chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellDelegate.java:692: // shutdownVr is called with stayingInChrome because other exit ...
3 years, 7 months ago (2017-05-19 22:25:18 UTC) #29
ymalik
https://codereview.chromium.org/2887383002/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellDelegate.java File chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellDelegate.java (right): https://codereview.chromium.org/2887383002/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellDelegate.java#newcode692 chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellDelegate.java:692: // shutdownVr is called with stayingInChrome because other exit ...
3 years, 7 months ago (2017-05-22 17:21:20 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2887383002/80001
3 years, 7 months ago (2017-05-22 17:22:13 UTC) #33
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/451332)
3 years, 7 months ago (2017-05-22 20:03:01 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2887383002/80001
3 years, 7 months ago (2017-05-22 20:32:30 UTC) #37
commit-bot: I haz the power
Committed patchset #5 (id:80001) as https://chromium.googlesource.com/chromium/src/+/bce55d7b55d0b8da8b65315b255e17ba36bef5c8
3 years, 7 months ago (2017-05-22 21:36:48 UTC) #40
mikecase (-- gone --)
Seems to be causing compile failures on Android x64 Builder (dbg) symbol: variable VrFeedbackStatus location: ...
3 years, 7 months ago (2017-05-22 22:49:06 UTC) #42
mikecase (-- gone --)
Im getting an error when trying to revert Failed to load resource: the server responded ...
3 years, 7 months ago (2017-05-22 23:01:23 UTC) #43
bsheedy
On 2017/05/22 23:01:23, mikecase wrote: > Im getting an error when trying to revert > ...
3 years, 7 months ago (2017-05-22 23:10:50 UTC) #44
ymalik
On 2017/05/22 23:10:50, bsheedy wrote: > On 2017/05/22 23:01:23, mikecase wrote: > > Im getting ...
3 years, 7 months ago (2017-05-22 23:15:54 UTC) #45
bsheedy
On 2017/05/22 23:15:54, ymalik wrote: > On 2017/05/22 23:10:50, bsheedy wrote: > > On 2017/05/22 ...
3 years, 7 months ago (2017-05-22 23:19:30 UTC) #46
ymalik
On 2017/05/22 23:19:30, bsheedy wrote: > On 2017/05/22 23:15:54, ymalik wrote: > > On 2017/05/22 ...
3 years, 7 months ago (2017-05-22 23:23:03 UTC) #47
ymalik
On 2017/05/22 23:23:03, ymalik wrote: > On 2017/05/22 23:19:30, bsheedy wrote: > > On 2017/05/22 ...
3 years, 7 months ago (2017-05-22 23:27:09 UTC) #48
ymalik
On 2017/05/22 23:27:09, ymalik wrote: > On 2017/05/22 23:23:03, ymalik wrote: > > On 2017/05/22 ...
3 years, 7 months ago (2017-05-23 00:14:43 UTC) #49
mthiesse
3 years, 7 months ago (2017-05-23 00:16:57 UTC) #50
Message was sent while issue was closed.
On 2017/05/23 00:14:43, ymalik wrote:
> On 2017/05/22 23:27:09, ymalik wrote:
> > On 2017/05/22 23:23:03, ymalik wrote:
> > > On 2017/05/22 23:19:30, bsheedy wrote:
> > > > On 2017/05/22 23:15:54, ymalik wrote:
> > > > > On 2017/05/22 23:10:50, bsheedy wrote:
> > > > > > On 2017/05/22 23:01:23, mikecase wrote:
> > > > > > > Im getting an error when trying to revert
> > > > > > > 
> > > > > > > Failed to load resource: the server responded with a status of 500
> ()
> > > > > > > /api/2887383002/80001/revert
> > > > > > > 
> > > > > > > Would like to revert this to green up the bots :/
> > > > > > 
> > > > > > I have no idea about the failure to revert, but the bot failure is
> being
> > > > > caused
> > > > > > by VrShellDelegate (which is included as part of
chrome_java_sources)
> > now
> > > > > > depending on VrFeedbackStatus (which is included as part of
> > > > > > chrome_vr_java_sources). chrome_vr_java_sources is only added if
> > enable_vr
> > > > is
> > > > > > true, which is always false on x86/x64 builds.
> > > > > 
> > > > > That makes sense. I'll write a CL that adds a VrFeedbackStatusImpl
which
> > > will
> > > > > build with chrome_vr_java_sources and VrFeedbackStatus which will be
> added
> > > to
> > > > > chrome_java_sources to keep the bots happy. Does that make sense
> bsheedy@?
> > > > 
> > > > Yes, although this should still be reverted if possible since it'll
> probably
> > > > take at least an hour to get the fix in (have to get through the CQ,
> etc.).
> > > 
> > > Agreed. I think the revert is failing because of enums.xml. Trying to
> manually
> > > revert now.
> > 
> > Revert patch going through CQ now:
https://codereview.chromium.org/2896933002/
> 
> +mthiesse, wdyt?
> I think this would be a simple fix. Because VrFeedbackStatus only has static
> functions, we can just move it to chrome_java_sources from
> chrome_vr_java_sources. Verified locally that this fixes the issue. I'll let
the
> revert go through though since its further in the commit queue.

sgtm. Anything that doesn't depend on gvr should probably just always be
compiled in for java.

Powered by Google App Engine
This is Rietveld 408576698