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

Unified Diff: base/android/memory_pressure_listener_android.cc

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
« no previous file with comments | « base/android/memory_pressure_listener_android.h ('k') | base/android/path_service_android.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/android/memory_pressure_listener_android.cc
diff --git a/base/android/memory_pressure_listener_android.cc b/base/android/memory_pressure_listener_android.cc
deleted file mode 100644
index 80c07bcf9c1ae305b9a5f331603934b3efee0e53..0000000000000000000000000000000000000000
--- a/base/android/memory_pressure_listener_android.cc
+++ /dev/null
@@ -1,31 +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.
-
-#include "base/android/memory_pressure_listener_android.h"
-
-#include "base/memory/memory_pressure_listener.h"
-#include "jni/MemoryPressureListener_jni.h"
-
-// Defined and called by JNI.
-static void OnMemoryPressure(
- JNIEnv* env, jclass clazz, jint memory_pressure_level) {
- base::MemoryPressureListener::NotifyMemoryPressure(
- static_cast<base::MemoryPressureListener::MemoryPressureLevel>(
- memory_pressure_level));
-}
-
-namespace base {
-namespace android {
-
-bool MemoryPressureListenerAndroid::Register(JNIEnv* env) {
- return RegisterNativesImpl(env);
-}
-
-void MemoryPressureListenerAndroid::RegisterSystemCallback(JNIEnv* env) {
- Java_MemoryPressureListener_registerSystemCallback(
- env, GetApplicationContext());
-}
-
-} // namespace android
-} // namespace base
« no previous file with comments | « base/android/memory_pressure_listener_android.h ('k') | base/android/path_service_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698