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

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

Issue 2642333003: Dynamically register the power broadcast receiver. (Closed)
Patch Set: Assert on UI thread for creation 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
« no previous file with comments | « base/android/java/src/org/chromium/base/PowerMonitor.java ('k') | chrome/android/java/AndroidManifest.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/android/java/src/org/chromium/base/PowerStatusReceiver.java
diff --git a/base/android/java/src/org/chromium/base/PowerStatusReceiver.java b/base/android/java/src/org/chromium/base/PowerStatusReceiver.java
deleted file mode 100644
index 904a7401e65e935db039acbdad61b00c7f20beaa..0000000000000000000000000000000000000000
--- a/base/android/java/src/org/chromium/base/PowerStatusReceiver.java
+++ /dev/null
@@ -1,23 +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;
-
-import android.content.BroadcastReceiver;
-import android.content.Context;
-import android.content.Intent;
-
-
-/**
- * A BroadcastReceiver that listens to changes in power status and notifies
- * PowerMonitor.
- * It's instantiated by the framework via the application intent-filter
- * declared in its manifest.
- */
-public class PowerStatusReceiver extends BroadcastReceiver {
- @Override
- public void onReceive(Context context, Intent intent) {
- PowerMonitor.onBatteryChargingChanged(intent);
- }
-}
« no previous file with comments | « base/android/java/src/org/chromium/base/PowerMonitor.java ('k') | chrome/android/java/AndroidManifest.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698