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

Unified Diff: blimp/client/app/android/java/src/org/chromium/blimp/app/BlimpEnvironment.java

Issue 2624903006: Remove all blimp client code. (Closed)
Patch Set: Update buildbot configuration Created 3 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: blimp/client/app/android/java/src/org/chromium/blimp/app/BlimpEnvironment.java
diff --git a/blimp/client/app/android/java/src/org/chromium/blimp/app/BlimpEnvironment.java b/blimp/client/app/android/java/src/org/chromium/blimp/app/BlimpEnvironment.java
deleted file mode 100644
index fe80430bfa7915990c0cccc5055076a20aeceb8c..0000000000000000000000000000000000000000
--- a/blimp/client/app/android/java/src/org/chromium/blimp/app/BlimpEnvironment.java
+++ /dev/null
@@ -1,58 +0,0 @@
-// Copyright 2016 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.blimp.app;
-
-import org.chromium.base.ThreadUtils;
-import org.chromium.base.annotations.CalledByNative;
-import org.chromium.base.annotations.JNINamespace;
-import org.chromium.blimp_public.BlimpClientContext;
-
-/**
- * BlimpEnvironment is the core environment required to run Blimp for Android.
- */
-@JNINamespace("blimp::client")
-public class BlimpEnvironment {
- private static BlimpEnvironment sInstance;
-
- private long mBlimpEnvironmentNativePtr;
-
- public static BlimpEnvironment getInstance() {
- ThreadUtils.assertOnUiThread();
- if (sInstance == null) {
- sInstance = new BlimpEnvironment();
- }
- return sInstance;
- }
-
- private static void clearInstance() {
- ThreadUtils.assertOnUiThread();
- sInstance = null;
- }
-
- private BlimpEnvironment() {
- mBlimpEnvironmentNativePtr = nativeInit();
- }
-
- public void destroy() {
- ThreadUtils.assertOnUiThread();
- assert mBlimpEnvironmentNativePtr != 0;
- nativeDestroy(mBlimpEnvironmentNativePtr);
- mBlimpEnvironmentNativePtr = 0;
- clearInstance();
- }
-
- public BlimpClientContext getBlimpClientContext() {
- return nativeGetBlimpClientContext(mBlimpEnvironmentNativePtr);
- }
-
- @CalledByNative
- private long getNativePtr() {
- return mBlimpEnvironmentNativePtr;
- }
-
- private native long nativeInit();
- private native void nativeDestroy(long nativeBlimpEnvironment);
- private native BlimpClientContext nativeGetBlimpClientContext(long nativeBlimpEnvironment);
-}

Powered by Google App Engine
This is Rietveld 408576698