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

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

Issue 775343004: Move //mojo/shell to //shell (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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/android/apk/src/org/chromium/mojo_shell_apk/MojoShellApplication.java
diff --git a/mojo/shell/android/apk/src/org/chromium/mojo_shell_apk/MojoShellApplication.java b/mojo/shell/android/apk/src/org/chromium/mojo_shell_apk/MojoShellApplication.java
deleted file mode 100644
index c90fd5ee7bc7eca626aa466eae609f92c8274bb9..0000000000000000000000000000000000000000
--- a/mojo/shell/android/apk/src/org/chromium/mojo_shell_apk/MojoShellApplication.java
+++ /dev/null
@@ -1,57 +0,0 @@
-// Copyright 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-package org.chromium.mojo_shell_apk;
-
-import android.util.Log;
-
-import org.chromium.base.BaseChromiumApplication;
-import org.chromium.base.PathUtils;
-import org.chromium.base.library_loader.LibraryLoader;
-import org.chromium.base.library_loader.ProcessInitException;
-
-/**
- * MojoShell implementation of {@link android.app.Application}, managing application-level global
- * state and initializations.
- */
-public class MojoShellApplication extends BaseChromiumApplication {
- private static final String TAG = "MojoShellApplication";
- private static final String PRIVATE_DATA_DIRECTORY_SUFFIX = "mojo_shell";
-
- @Override
- public void onCreate() {
- super.onCreate();
- clearTemporaryFiles();
- initializeJavaUtils();
- initializeNative();
- }
-
- /**
- * Deletes the temporary files and directories created in the previous run of the application.
- * This is important regardless of cleanups on exit, as the previous run could have crashed.
- */
- private void clearTemporaryFiles() {
- AndroidHandler.clearTemporaryFiles(this);
- }
-
- /**
- * Initializes Java-side utils.
- */
- private void initializeJavaUtils() {
- PathUtils.setPrivateDataDirectorySuffix(PRIVATE_DATA_DIRECTORY_SUFFIX);
- }
-
- /**
- * Loads the native library.
- */
- private void initializeNative() {
- try {
- LibraryLoader.ensureInitialized();
- } catch (ProcessInitException e) {
- Log.e(TAG, "libmojo_shell initialization failed.", e);
- System.exit(-1);
- return;
- }
- }
-}
« no previous file with comments | « mojo/shell/android/apk/src/org/chromium/mojo_shell_apk/MojoShellActivity.java ('k') | mojo/shell/android/bootstrap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698