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

Issue 2178023002: Make CallbackHelper#waitUntilCriteria verbose during failure. (Closed)

Created:
4 years, 5 months ago by bhallam
Modified:
4 years, 4 months ago
Reviewers:
Ted C
CC:
chromium-reviews, darin-cc_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make CallbackHelper#waitUntilCriteria verbose during failure. Currently the implementation of CallbackHelper#waitUntilCriteria(Criteria, long, TimeUnit) takes in a Criteria which has a failure message which is never surfaced up when the waitUntilCriteria call times out. This change will utilize the failure message whenever the Criteria object contains a non null failure message. BUG=631122 Committed: https://crrev.com/6c632b3764ed4fc351eded015dbc95caeecd932c Cr-Commit-Position: refs/heads/master@{#412708}

Patch Set 1 #

Patch Set 2 : Make CallbackHelper#waitUntilCriteria verbose during failure. #

Total comments: 4

Patch Set 3 : Addressing TedC's comment on failure message redundant null check. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -1 line) Patch
M content/public/test/android/javatests/src/org/chromium/content/browser/test/util/CallbackHelper.java View 1 2 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 16 (8 generated)
bhallam
Hi Miguel, Can you PTAL at this patch. Thanks! Mohit
4 years, 4 months ago (2016-07-26 23:42:06 UTC) #3
bhallam
Hi Ted! Can you PTAL at this patch? Thanks Mohit
4 years, 4 months ago (2016-08-17 01:05:50 UTC) #5
Ted C
https://codereview.chromium.org/2178023002/diff/20001/content/public/test/android/javatests/src/org/chromium/content/browser/test/util/CallbackHelper.java File content/public/test/android/javatests/src/org/chromium/content/browser/test/util/CallbackHelper.java (right): https://codereview.chromium.org/2178023002/diff/20001/content/public/test/android/javatests/src/org/chromium/content/browser/test/util/CallbackHelper.java#newcode219 content/public/test/android/javatests/src/org/chromium/content/browser/test/util/CallbackHelper.java:219: final String message = TextUtils.isEmpty(criteria.getFailureReason()) getFailureReason is default populated ...
4 years, 4 months ago (2016-08-17 14:26:38 UTC) #6
bhallam
Hi Ted, I have updated the CL. Thanks Mohit https://codereview.chromium.org/2178023002/diff/20001/content/public/test/android/javatests/src/org/chromium/content/browser/test/util/CallbackHelper.java File content/public/test/android/javatests/src/org/chromium/content/browser/test/util/CallbackHelper.java (right): https://codereview.chromium.org/2178023002/diff/20001/content/public/test/android/javatests/src/org/chromium/content/browser/test/util/CallbackHelper.java#newcode219 content/public/test/android/javatests/src/org/chromium/content/browser/test/util/CallbackHelper.java:219: ...
4 years, 4 months ago (2016-08-17 16:59:01 UTC) #7
Ted C
lgtm
4 years, 4 months ago (2016-08-17 22:59:12 UTC) #10
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/2178023002/40001
4 years, 4 months ago (2016-08-17 23:17:15 UTC) #12
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 4 months ago (2016-08-18 00:48:54 UTC) #14
commit-bot: I haz the power
4 years, 4 months ago (2016-08-18 00:52:06 UTC) #16
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/6c632b3764ed4fc351eded015dbc95caeecd932c
Cr-Commit-Position: refs/heads/master@{#412708}

Powered by Google App Engine
This is Rietveld 408576698