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

Unified Diff: mojo/shell/standalone/android/apk/src/org/chromium/mojo/shell/AndroidHandler.java

Issue 1630823002: Move mojo/runner to mojo/shell/standalone (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 11 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/shell/standalone/android/apk/src/org/chromium/mojo/shell/AndroidHandler.java
diff --git a/mojo/runner/android/apk/src/org/chromium/mojo/shell/AndroidHandler.java b/mojo/shell/standalone/android/apk/src/org/chromium/mojo/shell/AndroidHandler.java
similarity index 98%
rename from mojo/runner/android/apk/src/org/chromium/mojo/shell/AndroidHandler.java
rename to mojo/shell/standalone/android/apk/src/org/chromium/mojo/shell/AndroidHandler.java
index 8516e63454d0dd48d87d8f2592063207e6506b8d..7a09c048ce5b10aa962c8345d91b4e620393ffc3 100644
--- a/mojo/runner/android/apk/src/org/chromium/mojo/shell/AndroidHandler.java
+++ b/mojo/shell/standalone/android/apk/src/org/chromium/mojo/shell/AndroidHandler.java
@@ -23,7 +23,7 @@ import java.lang.reflect.Constructor;
* TODO(ppi): create a separate instance for each application being bootstrapped to keep track of
* the temporary files and clean them up once the execution finishes.
*/
-@JNINamespace("mojo::runner")
+@JNINamespace("mojo::shell")
public class AndroidHandler {
private static final String TAG = "AndroidHandler";
@@ -63,8 +63,8 @@ public class AndroidHandler {
*/
@CalledByNative
private static String getNewTempArchivePath(Context context) throws IOException {
- return File.createTempFile(ARCHIVE_PREFIX, ARCHIVE_SUFFIX,
- getAppDir(context)).getAbsolutePath();
+ return File.createTempFile(ARCHIVE_PREFIX, ARCHIVE_SUFFIX, getAppDir(context))
+ .getAbsolutePath();
}
/**
@@ -78,8 +78,8 @@ public class AndroidHandler {
* payload.
*/
@CalledByNative
- private static boolean bootstrap(Context context, String archivePath, int handle,
- long runApplicationPtr) {
+ private static boolean bootstrap(
+ Context context, String archivePath, int handle, long runApplicationPtr) {
File bootstrapJavaLibrary;
File bootstrapNativeLibrary;
try {
@@ -103,7 +103,7 @@ public class AndroidHandler {
getAppDir(context), FileHelper.FileType.TEMPORARY,
FileHelper.ArchiveType.NORMAL);
} catch (Exception e) {
- Log.e(TAG, "Extraction of application files from the archive failed.", e);
+ Log.e(TAG, "Extraction of application files from the archive failed.", e);
return false;
}

Powered by Google App Engine
This is Rietveld 408576698