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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellDelegate.java

Issue 2746453003: Fix several issues with VR instrumentation tests (Closed)
Patch Set: Please work this time Created 3 years, 9 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 | « no previous file | chrome/test/android/javatests/src/org/chromium/chrome/test/ChromeInstrumentationTestRunner.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellDelegate.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellDelegate.java b/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellDelegate.java
index 14a01769f01c9f1f275b1fc17840d8bbedfb96f3..9c98d5d356975c1538f2290f510e3142d8429e07 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellDelegate.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellDelegate.java
@@ -722,7 +722,12 @@ public class VrShellDelegate {
if (mVrClassesWrapper == null) return false;
mTabModelSelector = mActivity.getCompositorViewHolder().detachForVR();
if (mTabModelSelector == null) return false;
- mVrShell = mVrClassesWrapper.createVrShell(mActivity, this, mTabModelSelector);
+ StrictMode.ThreadPolicy oldPolicy = StrictMode.allowThreadDiskWrites();
+ try {
+ mVrShell = mVrClassesWrapper.createVrShell(mActivity, this, mTabModelSelector);
+ } finally {
+ StrictMode.setThreadPolicy(oldPolicy);
+ }
return mVrShell != null;
}
« no previous file with comments | « no previous file | chrome/test/android/javatests/src/org/chromium/chrome/test/ChromeInstrumentationTestRunner.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698