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

Unified Diff: media/base/android/java/src/org/chromium/media/VideoCaptureFactory.java

Issue 1174523002: Use Chromium's Logging instead of Android's Logging for media files (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: hardcoding cr. 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: media/base/android/java/src/org/chromium/media/VideoCaptureFactory.java
diff --git a/media/base/android/java/src/org/chromium/media/VideoCaptureFactory.java b/media/base/android/java/src/org/chromium/media/VideoCaptureFactory.java
index fcc8ebfad5f995eabcd351dcef2e1a594f7c20bf..d4338cce05315bd4e1f5f227b9caf683c4e41a83 100644
--- a/media/base/android/java/src/org/chromium/media/VideoCaptureFactory.java
+++ b/media/base/android/java/src/org/chromium/media/VideoCaptureFactory.java
@@ -7,10 +7,10 @@ package org.chromium.media;
import android.content.Context;
import android.content.pm.PackageManager;
import android.os.Build;
-import android.util.Log;
import org.chromium.base.CalledByNative;
import org.chromium.base.JNINamespace;
+import org.chromium.base.Log;
// Needed for jni_generator.py to guess correctly the origin of
// VideoCapture.CaptureFormat.
import org.chromium.media.VideoCapture;
@@ -37,7 +37,7 @@ class VideoCaptureFactory {
{"Peanut", "peanut"},
};
private static int sNumberOfSystemCameras = -1;
- private static final String TAG = "ChromiumCameraInfo";
+ private static final String TAG = "cr.media";
private static boolean isSpecialDevice() {
for (String[] device : SPECIAL_DEVICE_LIST) {
@@ -74,7 +74,7 @@ class VideoCaptureFactory {
} else {
sNumberOfSystemCameras = VideoCaptureAndroid.getNumberOfCameras();
if (isSpecialDevice()) {
- Log.d(TAG, "Special device: " + android.os.Build.MODEL);
+ Log.d(TAG, "Special device: %s", android.os.Build.MODEL);
sNumberOfSystemCameras += VideoCaptureTango.numberOfCameras();
}
}

Powered by Google App Engine
This is Rietveld 408576698