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

Unified Diff: chrome/test/android/javatests/src/org/chromium/chrome/test/ChromeInstrumentationTestRunner.java

Issue 2727873002: Implement lazy initialization for VrShellDelegate (Closed)
Patch Set: Fix support for DON flow from headset insertion. Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/test/android/javatests/src/org/chromium/chrome/test/ChromeInstrumentationTestRunner.java
diff --git a/chrome/test/android/javatests/src/org/chromium/chrome/test/ChromeInstrumentationTestRunner.java b/chrome/test/android/javatests/src/org/chromium/chrome/test/ChromeInstrumentationTestRunner.java
index 7b021ebe565c5843801473072f1c60b80309ed8c..18a69a63136f207ff9a84b647c8f52c3081cc74c 100644
--- a/chrome/test/android/javatests/src/org/chromium/chrome/test/ChromeInstrumentationTestRunner.java
+++ b/chrome/test/android/javatests/src/org/chromium/chrome/test/ChromeInstrumentationTestRunner.java
@@ -77,7 +77,7 @@ public class ChromeInstrumentationTestRunner extends BaseChromiumInstrumentation
VrClassesWrapper vrClassesBuilder =
(VrClassesWrapper) vrClassesBuilderConstructor.newInstance(
getTargetContext());
- mDaydreamApi = vrClassesBuilder.createVrDaydreamApi();
+ mDaydreamApi = vrClassesBuilder.createVrDaydreamApi(getTargetContext());
} catch (ClassNotFoundException | InstantiationException | IllegalAccessException
| IllegalArgumentException | InvocationTargetException
| NoSuchMethodException e) {
@@ -98,7 +98,7 @@ public class ChromeInstrumentationTestRunner extends BaseChromiumInstrumentation
}
// isDaydreamCurrentViewer() creates a concrete instance of DaydreamApi,
// which can only be done on the main thread
- FutureTask<Boolean> checker = new FutureTask<Boolean>(new Callable<Boolean>() {
+ FutureTask<Boolean> checker = new FutureTask<>(new Callable<Boolean>() {
@Override
public Boolean call() {
return getDaydreamApi().isDaydreamCurrentViewer();

Powered by Google App Engine
This is Rietveld 408576698