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

Unified Diff: mandoline/app/android/apk/src/org/chromium/mandoline/MandolineActivity.java

Issue 1677293002: Bye bye Mandoline (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: moar Created 4 years, 10 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
« no previous file with comments | « mandoline/app/android/apk/res/drawable/mandoline.png ('k') | mandoline/app/android/mandoline_activity.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mandoline/app/android/apk/src/org/chromium/mandoline/MandolineActivity.java
diff --git a/mandoline/app/android/apk/src/org/chromium/mandoline/MandolineActivity.java b/mandoline/app/android/apk/src/org/chromium/mandoline/MandolineActivity.java
deleted file mode 100644
index 7aa748abfc208b309c443f890cc1b41da6f7112d..0000000000000000000000000000000000000000
--- a/mandoline/app/android/apk/src/org/chromium/mandoline/MandolineActivity.java
+++ /dev/null
@@ -1,67 +0,0 @@
-// Copyright 2015 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.mandoline;
-
-import android.app.Activity;
-import android.content.Intent;
-import android.net.Uri;
-import android.os.Bundle;
-
-import org.chromium.base.Log;
-import org.chromium.base.annotations.JNINamespace;
-import org.chromium.mojo.shell.ShellMain;
-
-/**
- * Activity hosting the Mojo View Manager for Mandoline.
- */
-@JNINamespace("mandoline")
-public class MandolineActivity extends Activity {
- private static final String TAG = "cr.MandolineActivity";
- private static final String EXTRAS = "org.chromium.mandoline.extras";
-
- @Override
- protected void onCreate(final Bundle savedInstanceState) {
- super.onCreate(savedInstanceState);
-
- String[] parameters = getIntent().getStringArrayExtra(EXTRAS);
- if (parameters != null) {
- for (String s : parameters) {
- s = s.replace("\\,", ",");
- }
- }
- if (Intent.ACTION_VIEW.equals(getIntent().getAction())) {
- Uri uri = getIntent().getData();
- if (uri != null) {
- Log.i(TAG, "MandolineActivity opening " + uri);
- if (parameters == null) {
- parameters = new String[] {uri.toString()};
- } else {
- String[] newParameters = new String[parameters.length + 1];
- System.arraycopy(parameters, 0, newParameters, 0, parameters.length);
- newParameters[parameters.length] = uri.toString();
- parameters = newParameters;
- }
- }
- }
-
- ShellMain.ensureInitialized(this, parameters);
- ShellMain.start();
- }
-
- @Override
- protected void onNewIntent(Intent intent) {
- super.onNewIntent(intent);
-
- if (Intent.ACTION_VIEW.equals(intent.getAction())) {
- Uri uri = intent.getData();
- if (uri != null) {
- Log.i(TAG, "MandolineActivity launching new intent for uri: " + uri);
- nativeLaunchURL(uri.toString());
- }
- }
- }
-
- private static native void nativeLaunchURL(String url);
-}
« no previous file with comments | « mandoline/app/android/apk/res/drawable/mandoline.png ('k') | mandoline/app/android/mandoline_activity.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698