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

Unified Diff: base/android/java/src/org/chromium/base/CpuFeatures.java

Issue 1647803004: Move base to DEPS (Closed) Base URL: git@github.com:domokit/mojo.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: base/android/java/src/org/chromium/base/CpuFeatures.java
diff --git a/base/android/java/src/org/chromium/base/CpuFeatures.java b/base/android/java/src/org/chromium/base/CpuFeatures.java
deleted file mode 100644
index 0e8a7abcdb8907a71f9d5d0e65e82054b044fcbc..0000000000000000000000000000000000000000
--- a/base/android/java/src/org/chromium/base/CpuFeatures.java
+++ /dev/null
@@ -1,40 +0,0 @@
-// Copyright 2012 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.base;
-
-// The only purpose of this class is to allow sending CPU properties
-// from the browser process to sandboxed renderer processes. This is
-// needed because sandboxed processes cannot, on ARM, query the kernel
-// about the CPU's properties by parsing /proc, so this operation must
-// be performed in the browser process, and the result passed to
-// renderer ones.
-//
-// For more context, see http://crbug.com/164154
-//
-// Technically, this is a wrapper around the native NDK cpufeatures
-// library. The exact CPU features bits are never used in Java so
-// there is no point in duplicating their definitions here.
-//
-@JNINamespace("base::android")
-public abstract class CpuFeatures {
- /**
- * Return the number of CPU Cores on the device.
- */
- public static int getCount() {
- return nativeGetCoreCount();
- }
-
- /**
- * Return the CPU feature mask.
- * This is a 64-bit integer that corresponds to the CPU's features.
- * The value comes directly from android_getCpuFeatures().
- */
- public static long getMask() {
- return nativeGetCpuFeatures();
- }
-
- private static native int nativeGetCoreCount();
- private static native long nativeGetCpuFeatures();
-}
« no previous file with comments | « base/android/java/src/org/chromium/base/ContentUriUtils.java ('k') | base/android/java/src/org/chromium/base/EventLog.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698