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

Unified Diff: power_monitor/power_monitor_device_source_android.cc

Issue 2050803003: Update to Chromium //base at Chromium commit e3a753f17bac62738b0dbf0b36510f767b081e4b. (Closed) Base URL: https://github.com/domokit/base.git@master
Patch Set: Created 4 years, 6 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 | « pickle_unittest.cc ('k') | process/kill.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: power_monitor/power_monitor_device_source_android.cc
diff --git a/power_monitor/power_monitor_device_source_android.cc b/power_monitor/power_monitor_device_source_android.cc
index 4d9eb5278001ff7130b497275f0b8d663c4c96cf..9671c30761ebb31584f1165e627f21933fc37baa 100644
--- a/power_monitor/power_monitor_device_source_android.cc
+++ b/power_monitor/power_monitor_device_source_android.cc
@@ -19,15 +19,15 @@ void ProcessPowerEventHelper(PowerMonitorSource::PowerEvent event) {
namespace android {
// Native implementation of PowerMonitor.java.
-void OnBatteryChargingChanged(JNIEnv* env, jclass clazz) {
+void OnBatteryChargingChanged(JNIEnv* env, const JavaParamRef<jclass>& clazz) {
ProcessPowerEventHelper(PowerMonitorSource::POWER_STATE_EVENT);
}
-void OnMainActivityResumed(JNIEnv* env, jclass clazz) {
+void OnMainActivityResumed(JNIEnv* env, const JavaParamRef<jclass>& clazz) {
ProcessPowerEventHelper(PowerMonitorSource::RESUME_EVENT);
}
-void OnMainActivitySuspended(JNIEnv* env, jclass clazz) {
+void OnMainActivitySuspended(JNIEnv* env, const JavaParamRef<jclass>& clazz) {
ProcessPowerEventHelper(PowerMonitorSource::SUSPEND_EVENT);
}
« no previous file with comments | « pickle_unittest.cc ('k') | process/kill.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698