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

Side by Side Diff: base/android/java/src/org/chromium/base/PowerStatusReceiver.java

Issue 11027024: Android: Integrates native and java SystemMonitor. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Comments Created 8 years, 2 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 package org.chromium.base;
6
7 import android.content.BroadcastReceiver;
8 import android.content.Context;
9 import android.content.Intent;
10
11
12 /**
13 * A BroadcastReceiver that listens to changes in power status and notifies
14 * SystemMonitor.
15 * It's instantiated by the framework via the application intent-filter
16 * declared in its manifest.
17 */
18 public class PowerStatusReceiver extends BroadcastReceiver {
19 @Override
20 public void onReceive(Context context, Intent intent) {
21 SystemMonitor.onBatteryChargingChanged(intent);
22 }
23 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698