Index: chrome/android/sync_shell/javatests/src/org/chromium/chrome/browser/sync/TypedUrlsTest.java |
diff --git a/chrome/android/sync_shell/javatests/src/org/chromium/chrome/browser/sync/TypedUrlsTest.java b/chrome/android/sync_shell/javatests/src/org/chromium/chrome/browser/sync/TypedUrlsTest.java |
index d2287b94ea5462480f0b4abd395ee74c9b8d757d..fdff803e4b7aab62709adcadc75dcfddd2714603 100644 |
--- a/chrome/android/sync_shell/javatests/src/org/chromium/chrome/browser/sync/TypedUrlsTest.java |
+++ b/chrome/android/sync_shell/javatests/src/org/chromium/chrome/browser/sync/TypedUrlsTest.java |
@@ -142,7 +142,7 @@ public class TypedUrlsTest extends SyncTestBase { |
} |
private void waitForClientTypedUrlCount(int count) throws InterruptedException { |
- CriteriaHelper.pollForCriteria(Criteria.equals(count, new Callable<Integer>() { |
+ CriteriaHelper.pollInstrumentationThread(Criteria.equals(count, new Callable<Integer>() { |
@Override |
public Integer call() throws Exception { |
return SyncTestUtil.getLocalData(mContext, TYPED_URLS_TYPE).size(); |
@@ -152,7 +152,7 @@ public class TypedUrlsTest extends SyncTestBase { |
private void waitForServerTypedUrlCountWithName(final int count, final String name) |
throws InterruptedException { |
- CriteriaHelper.pollForCriteria(new Criteria( |
+ CriteriaHelper.pollInstrumentationThread(new Criteria( |
"Expected " + count + " server typed URLs with name " + name + ".") { |
@Override |
public boolean isSatisfied() { |