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

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

Issue 2727873002: Implement lazy initialization for VrShellDelegate (Closed)
Patch Set: Fix FindBugs errors - neat! 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
« no previous file with comments | « chrome/browser/android/vr_shell/vr_shell_gl.h ('k') | device/vr/android/gvr/gvr_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 23c3c65b4b33dacca970607ad1ea491bbf59c67e..9148df992e633cdec54f4acbd5bd34a9d543da37 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
@@ -78,7 +78,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) {
@@ -99,7 +99,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();
« no previous file with comments | « chrome/browser/android/vr_shell/vr_shell_gl.h ('k') | device/vr/android/gvr/gvr_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698