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

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

Issue 1045923003: Rename the various shell MojoMains to ShellMain. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 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
Index: shell/android/apk/src/org/chromium/mojo/shell/ShellMain.java
diff --git a/shell/android/apk/src/org/chromium/mojo/shell/MojoMain.java b/shell/android/apk/src/org/chromium/mojo/shell/ShellMain.java
similarity index 94%
rename from shell/android/apk/src/org/chromium/mojo/shell/MojoMain.java
rename to shell/android/apk/src/org/chromium/mojo/shell/ShellMain.java
index d383b8d5a0f1fcd94f1fd394deba5ee902a1aa83..1f55fa2c86776366a1b887e3f90d2a46f8325e57 100644
--- a/shell/android/apk/src/org/chromium/mojo/shell/MojoMain.java
+++ b/shell/android/apk/src/org/chromium/mojo/shell/ShellMain.java
@@ -20,8 +20,8 @@ import java.util.List;
* A placeholder class to call native functions.
**/
@JNINamespace("mojo::shell")
-public class MojoMain {
- private static final String TAG = "MojoMain";
+public class ShellMain {
+ private static final String TAG = "ShellMain";
// Directory where applications bundled with the shell will be extracted.
private static final String LOCAL_APP_DIRECTORY = "local_apps";
@@ -40,8 +40,7 @@ public class MojoMain {
* Initializes the native system.
**/
static void ensureInitialized(Context applicationContext, String[] parameters) {
- if (sInitialized)
- return;
+ if (sInitialized) return;
try {
FileHelper.extractFromAssets(applicationContext, NETWORK_LIBRARY_APP,
getLocalAppsDir(applicationContext), false);
@@ -60,7 +59,7 @@ public class MojoMain {
getTmpDir(applicationContext).getAbsolutePath());
sInitialized = true;
} catch (Exception e) {
- Log.e(TAG, "MojoMain initialization failed.", e);
+ Log.e(TAG, "ShellMain initialization failed.", e);
throw new RuntimeException(e);
}
}
« no previous file with comments | « shell/android/apk/src/org/chromium/mojo/shell/MojoShellActivity.java ('k') | shell/android/library_loader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698