|
|
DescriptionUpdate Previews infbar accessibility string
The Previews infobar should read "Simplified page to save data and load
faster. Options available near bottom of the screen." when shown, rather
than reading the infobar strings.
BUG=732944
Review-Url: https://codereview.chromium.org/2939143002
Cr-Commit-Position: refs/heads/master@{#481046}
Committed: https://chromium.googlesource.com/chromium/src/+/3db9563bba1d755372c662cebb6402a4cc43e0e5
Patch Set 1 #
Total comments: 3
Patch Set 2 : refactor #
Total comments: 2
Patch Set 3 : add test #
Total comments: 4
Patch Set 4 : comments #Patch Set 5 : static class #
Messages
Total messages: 37 (24 generated)
megjablon@chromium.org changed reviewers: + dfalcantara@chromium.org
PTAL, thanks!
https://codereview.chromium.org/2939143002/diff/1/chrome/android/java/src/org... File chrome/android/java/src/org/chromium/chrome/browser/infobar/PreviewsInfoBar.java (right): https://codereview.chromium.org/2939143002/diff/1/chrome/android/java/src/org... chrome/android/java/src/org/chromium/chrome/browser/infobar/PreviewsInfoBar.java:38: // TODO(googleo): Fetch the accessibility message from the compact layout. Why is this TODO(googleo)? Is this copied from somewhere?
https://codereview.chromium.org/2939143002/diff/1/chrome/android/java/src/org... File chrome/android/java/src/org/chromium/chrome/browser/infobar/PreviewsInfoBar.java (right): https://codereview.chromium.org/2939143002/diff/1/chrome/android/java/src/org... chrome/android/java/src/org/chromium/chrome/browser/infobar/PreviewsInfoBar.java:38: // TODO(googleo): Fetch the accessibility message from the compact layout. On 2017/06/19 16:16:50, dfalcantara wrote: > Why is this TODO(googleo)? Is this copied from somewhere? Er, you should refactor it so the code's common instead of just straight copying it from InfoBar.java. I've already had to do janitorial work on another function that was copied across three infobars and would like to avoid more cleanup.
The CQ bit was checked by megjablon@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Patchset #2 (id:20001) has been deleted
The CQ bit was checked by megjablon@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
https://codereview.chromium.org/2939143002/diff/1/chrome/android/java/src/org... File chrome/android/java/src/org/chromium/chrome/browser/infobar/PreviewsInfoBar.java (right): https://codereview.chromium.org/2939143002/diff/1/chrome/android/java/src/org... chrome/android/java/src/org/chromium/chrome/browser/infobar/PreviewsInfoBar.java:38: // TODO(googleo): Fetch the accessibility message from the compact layout. On 2017/06/19 16:20:44, dfalcantara wrote: > On 2017/06/19 16:16:50, dfalcantara wrote: > > Why is this TODO(googleo)? Is this copied from somewhere? > > Er, you should refactor it so the code's common instead of just straight copying > it from InfoBar.java. I've already had to do janitorial work on another > function that was copied across three infobars and would like to avoid more > cleanup. Done.
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
https://codereview.chromium.org/2939143002/diff/40001/chrome/android/java/src... File chrome/android/java/src/org/chromium/chrome/browser/infobar/InfoBar.java (right): https://codereview.chromium.org/2939143002/diff/40001/chrome/android/java/src... chrome/android/java/src/org/chromium/chrome/browser/infobar/InfoBar.java:151: return getAccessibilityMessage() + mContext.getString(R.string.bottom_bar_screen_position); AFAICT this isn't equivalent. 1) If mView == null and it's a compact layout, then it returns the string saying something's at the bottom of the screen without anything actually being there. 2) If mView == null or mMessageView == null and it's not a compact layout, then it returns the string saying something's at the bottom of the screen without anything actually being there. Add a test to make sure what you're doing actually matches what it did before.
The CQ bit was checked by megjablon@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was checked by megjablon@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was checked by megjablon@chromium.org to run a CQ dry run
Patchset #3 (id:60001) has been deleted
Dry run: CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
https://codereview.chromium.org/2939143002/diff/40001/chrome/android/java/src... File chrome/android/java/src/org/chromium/chrome/browser/infobar/InfoBar.java (right): https://codereview.chromium.org/2939143002/diff/40001/chrome/android/java/src... chrome/android/java/src/org/chromium/chrome/browser/infobar/InfoBar.java:151: return getAccessibilityMessage() + mContext.getString(R.string.bottom_bar_screen_position); On 2017/06/19 21:27:05, dfalcantara wrote: > AFAICT this isn't equivalent. > > 1) If mView == null and it's a compact layout, then it returns the string saying > something's at the bottom of the screen without anything actually being there. > > 2) If mView == null or mMessageView == null and it's not a compact layout, then > it returns the string saying something's at the bottom of the screen without > anything actually being there. > > Add a test to make sure what you're doing actually matches what it did before. Changed it so that it's equivalent. We can have mView == null, but I couldn't find a case where mMessageView would be null except when usesCompactLayout is true.
https://codereview.chromium.org/2939143002/diff/80001/chrome/android/javatest... File chrome/android/javatests/src/org/chromium/chrome/browser/infobar/InfoBarTest.java (right): https://codereview.chromium.org/2939143002/diff/80001/chrome/android/javatest... chrome/android/javatests/src/org/chromium/chrome/browser/infobar/InfoBarTest.java:148: @RetryOnFailure Don't add @RetryOnFailure for new tests. That implies you're adding a flaky test from the get go, and you're not actually doing anything that could flake here. https://codereview.chromium.org/2939143002/diff/80001/chrome/android/javatest... chrome/android/javatests/src/org/chromium/chrome/browser/infobar/InfoBarTest.java:167: infoBarNoMessage.getAccessibilityText()); infoBarCompact.
https://codereview.chromium.org/2939143002/diff/80001/chrome/android/javatest... File chrome/android/javatests/src/org/chromium/chrome/browser/infobar/InfoBarTest.java (right): https://codereview.chromium.org/2939143002/diff/80001/chrome/android/javatest... chrome/android/javatests/src/org/chromium/chrome/browser/infobar/InfoBarTest.java:148: @RetryOnFailure On 2017/06/20 20:45:23, dfalcantara wrote: > Don't add @RetryOnFailure for new tests. That implies you're adding a flaky > test from the get go, and you're not actually doing anything that could flake > here. Done. https://codereview.chromium.org/2939143002/diff/80001/chrome/android/javatest... chrome/android/javatests/src/org/chromium/chrome/browser/infobar/InfoBarTest.java:167: infoBarNoMessage.getAccessibilityText()); On 2017/06/20 20:45:23, dfalcantara wrote: > infoBarCompact. Ugh sorry, my bad. Trying to do this while in meetings all day. Done.
Good to go. lgtm
The CQ bit was checked by megjablon@chromium.org
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: android_clang_dbg_recipe on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_clan...)
The CQ bit was checked by megjablon@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by megjablon@chromium.org
The CQ bit was checked by megjablon@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from dfalcantara@chromium.org Link to the patchset: https://codereview.chromium.org/2939143002/#ps120001 (title: "static class")
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
CQ is committing da patch. Bot data: {"patchset_id": 120001, "attempt_start_ts": 1498001767312930, "parent_rev": "941c636edf9661207927a5da8dd88a622998d1f6", "commit_rev": "3db9563bba1d755372c662cebb6402a4cc43e0e5"}
Message was sent while issue was closed.
Description was changed from ========== Update Previews infbar accessibility string The Previews infobar should read "Simplified page to save data and load faster. Options available near bottom of the screen." when shown, rather than reading the infobar strings. BUG=732944 ========== to ========== Update Previews infbar accessibility string The Previews infobar should read "Simplified page to save data and load faster. Options available near bottom of the screen." when shown, rather than reading the infobar strings. BUG=732944 Review-Url: https://codereview.chromium.org/2939143002 Cr-Commit-Position: refs/heads/master@{#481046} Committed: https://chromium.googlesource.com/chromium/src/+/3db9563bba1d755372c662cebb64... ==========
Message was sent while issue was closed.
Committed patchset #5 (id:120001) as https://chromium.googlesource.com/chromium/src/+/3db9563bba1d755372c662cebb64... |