Commit d91ecfdf authored by Ben Joyce's avatar Ben Joyce Committed by Commit Bot

Android: Change variable to ignored for 767058

Need to change for androidx presubmit check.

Bug: 767058
Change-Id: I2efb55945ebce3533807a0c63b8044f1cbe3cb54
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1762545Reviewed-by: default avatarJohn Budorick <jbudorick@chromium.org>
Reviewed-by: default avatarNate Fischer <ntfschr@chromium.org>
Reviewed-by: default avatarPeter Wen <wnwen@chromium.org>
Reviewed-by: default avatarYun Liu <yliuyliu@google.com>
Commit-Queue: benjamin joyce <bjoyce@google.com>
Cr-Commit-Position: refs/heads/master@{#689155}
parent e1d3cf3b
......@@ -590,7 +590,7 @@ public class WebViewBrowserActivity extends AppCompatActivity {
private void initializeSettings(WebSettings settings) {
File appcache = null;
File geolocation = null;
try (StrictModeContext ctx = StrictModeContext.allowDiskWrites()) {
try (StrictModeContext ignored = StrictModeContext.allowDiskWrites()) {
appcache = getDir("appcache", 0);
geolocation = getDir("geolocation", 0);
}
......
......@@ -127,7 +127,7 @@ public class ChromeJUnit4ClassRunner extends ContentJUnit4ClassRunner {
// Getting the current viewer type may result in a disk write in VrCore, so allow
// that to prevent StrictMode errors.
Integer viewerType;
try (StrictModeContext smc = StrictModeContext.allowDiskWrites()) {
try (StrictModeContext ignored = StrictModeContext.allowDiskWrites()) {
viewerType = (Integer) currentViewerMethod.invoke(daydreamApiInstance);
}
Method closeMethod = daydreamApiClass.getMethod("close");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment