Index: chrome/android/javatests/src/org/chromium/chrome/browser/tab/InterceptNavigationDelegateTest.java |
diff --git a/chrome/android/javatests/src/org/chromium/chrome/browser/tab/InterceptNavigationDelegateTest.java b/chrome/android/javatests/src/org/chromium/chrome/browser/tab/InterceptNavigationDelegateTest.java |
index d36d07c7900f82742c7c4f8d5f4ed449ec353fdc..ac2e8ce32002ab207a12242b1705506557c29dbd 100644 |
--- a/chrome/android/javatests/src/org/chromium/chrome/browser/tab/InterceptNavigationDelegateTest.java |
+++ b/chrome/android/javatests/src/org/chromium/chrome/browser/tab/InterceptNavigationDelegateTest.java |
@@ -69,12 +69,13 @@ public class InterceptNavigationDelegateTest extends ChromeActivityTestCaseBase< |
private void waitTillExpectedCallsComplete(int count, long timeout) { |
try { |
- CriteriaHelper.pollForCriteria(Criteria.equals(count, new Callable<Integer>() { |
- @Override |
- public Integer call() { |
- return mHistory.size(); |
- } |
- }), timeout, CriteriaHelper.DEFAULT_POLLING_INTERVAL); |
+ CriteriaHelper.pollInstrumentationThread( |
+ Criteria.equals(count, new Callable<Integer>() { |
+ @Override |
+ public Integer call() { |
+ return mHistory.size(); |
+ } |
+ }), timeout, CriteriaHelper.DEFAULT_POLLING_INTERVAL); |
} catch (InterruptedException e) { |
fail("Failed while waiting for all calls to complete." + e); |
} |