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

Unified Diff: base/android/java/src/org/chromium/base/PathUtils.java

Issue 2851473007: Clean up StrictMode.allowThreadDiskReads calls. (Closed)
Patch Set: Created 3 years, 8 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: base/android/java/src/org/chromium/base/PathUtils.java
diff --git a/base/android/java/src/org/chromium/base/PathUtils.java b/base/android/java/src/org/chromium/base/PathUtils.java
index 1cadb250ac033d231912f13cde31885362f99a41..9358b71940d1fee0f03be4c5e748451aec12d91a 100644
--- a/base/android/java/src/org/chromium/base/PathUtils.java
+++ b/base/android/java/src/org/chromium/base/PathUtils.java
@@ -68,8 +68,7 @@ public abstract class PathUtils {
// already finished.
if (sDirPathFetchTask.cancel(false)) {
// Allow disk access here because we have no other choice.
- StrictMode.ThreadPolicy oldPolicy = StrictMode.allowThreadDiskReads();
- StrictMode.allowThreadDiskWrites();
+ StrictMode.ThreadPolicy oldPolicy = StrictMode.allowThreadDiskWrites();
try {
// sDirPathFetchTask did not complete. We have to run the code it was supposed
// to be responsible for synchronously on the UI thread.

Powered by Google App Engine
This is Rietveld 408576698