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

Unified Diff: mojo/runner/android/apk/src/org/chromium/mojo/shell/FileHelper.java

Issue 1130763004: Gets mandoline working on android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: get windows working Created 5 years, 7 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: mojo/runner/android/apk/src/org/chromium/mojo/shell/FileHelper.java
diff --git a/mojo/runner/android/apk/src/org/chromium/mojo/shell/FileHelper.java b/mojo/runner/android/apk/src/org/chromium/mojo/shell/FileHelper.java
index c455251559f35f3d5cece6872935792b9878cedb..a4960921cd864566b86785f0d886e4330d610b88 100644
--- a/mojo/runner/android/apk/src/org/chromium/mojo/shell/FileHelper.java
+++ b/mojo/runner/android/apk/src/org/chromium/mojo/shell/FileHelper.java
@@ -97,10 +97,11 @@ class FileHelper {
String suffix = "-" + assetName;
outputFile = File.createTempFile(TEMP_FILE_PREFIX, suffix, outputDirectory);
} else {
- outputFile = new File(outputDirectory, assetName);
+ outputFile = new File(outputDirectory.getPath() + File.separator + assetName);
Jay Civelli 2015/05/11 21:07:34 This looks equivalent to what is was before. Do yo
sky 2015/05/11 21:13:35 Done.
if (outputFile.exists()) {
return outputFile;
}
+ outputFile.getParentFile().mkdirs();
}
BufferedInputStream inputStream = new BufferedInputStream(

Powered by Google App Engine
This is Rietveld 408576698