Index: content/public/android/javatests/src/org/chromium/content/browser/ContentViewLocationTest.java |
diff --git a/content/public/android/javatests/src/org/chromium/content/browser/ContentViewLocationTest.java b/content/public/android/javatests/src/org/chromium/content/browser/ContentViewLocationTest.java |
index 4ed740bc10f3c7b4defa6c74736069d0654e8898..e4a53a1654e7b895eca7dc6bfbe786ef22e28723 100644 |
--- a/content/public/android/javatests/src/org/chromium/content/browser/ContentViewLocationTest.java |
+++ b/content/public/android/javatests/src/org/chromium/content/browser/ContentViewLocationTest.java |
@@ -52,7 +52,7 @@ public class ContentViewLocationTest extends ContentShellTestBase { |
mJavascriptHelper.waitUntilHasValue(); |
assertEquals(0, Integer.parseInt(mJavascriptHelper.getJsonResultAndClear())); |
- CriteriaHelper.pollForCriteria(new Criteria() { |
+ CriteriaHelper.pollInstrumentationThread(new Criteria() { |
@Override |
public boolean isSatisfied() { |
mJavascriptHelper.evaluateJavaScriptForTests(getWebContents(), "positionCount"); |
@@ -73,7 +73,7 @@ public class ContentViewLocationTest extends ContentShellTestBase { |
} |
private void ensureGeolocationRunning(final boolean running) throws Exception { |
- CriteriaHelper.pollForCriteria(Criteria.equals(running, new Callable<Boolean>() { |
+ CriteriaHelper.pollInstrumentationThread(Criteria.equals(running, new Callable<Boolean>() { |
@Override |
public Boolean call() { |
return mMockLocationProvider.isRunning(); |