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

Unified Diff: content/public/android/java/src/org/chromium/content/browser/DeviceSensors.java

Issue 1178253005: Use Chromium's logging utility for content files (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 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
Index: content/public/android/java/src/org/chromium/content/browser/DeviceSensors.java
diff --git a/content/public/android/java/src/org/chromium/content/browser/DeviceSensors.java b/content/public/android/java/src/org/chromium/content/browser/DeviceSensors.java
index 9a1ee6c769c2afe2601c39550006b2c09457ecfc..f64c64f18fc76bcba07557e23805d6fe99cdf1c3 100644
--- a/content/public/android/java/src/org/chromium/content/browser/DeviceSensors.java
+++ b/content/public/android/java/src/org/chromium/content/browser/DeviceSensors.java
@@ -11,11 +11,11 @@ import android.hardware.SensorEventListener;
import android.hardware.SensorManager;
import android.os.Handler;
import android.os.HandlerThread;
-import android.util.Log;
import org.chromium.base.CalledByNative;
import org.chromium.base.CollectionUtil;
import org.chromium.base.JNINamespace;
+import org.chromium.base.Log;
import org.chromium.base.ThreadUtils;
import org.chromium.base.VisibleForTesting;
@@ -29,7 +29,7 @@ import java.util.Set;
@JNINamespace("content")
class DeviceSensors implements SensorEventListener {
- private static final String TAG = "DeviceSensors";
+ private static final String TAG = "cr.DeviceSensors";
// These fields are lazily initialized by getHandler().
private Thread mThread;
@@ -135,7 +135,7 @@ class DeviceSensors implements SensorEventListener {
success = registerSensors(DEVICE_LIGHT_SENSORS, rateInMicroseconds, true);
break;
default:
- Log.e(TAG, "Unknown event type: " + eventType);
+ Log.e(TAG, "Unknown event type: %d", eventType);
return false;
}
if (success) {
@@ -197,7 +197,7 @@ class DeviceSensors implements SensorEventListener {
}
break;
default:
- Log.e(TAG, "Unknown event type: " + eventType);
+ Log.e(TAG, "Unknown event type: %d", eventType);
return;
}

Powered by Google App Engine
This is Rietveld 408576698