summaryrefslogtreecommitdiffstats
path: root/chrome/android
diff options
context:
space:
mode:
authorqinmin@chromium.org <qinmin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-03-15 07:49:52 +0000
committerqinmin@chromium.org <qinmin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-03-15 07:49:52 +0000
commit65f38b9a22ab3abc3bc3d7bc862dc795f555f9c2 (patch)
treedd08228ef98b05e40c539892340aed29604c8972 /chrome/android
parent9287659e1b4fc6323d6b97a8c365c4b35fca660f (diff)
downloadchromium_src-65f38b9a22ab3abc3bc3d7bc862dc795f555f9c2.zip
chromium_src-65f38b9a22ab3abc3bc3d7bc862dc795f555f9c2.tar.gz
chromium_src-65f38b9a22ab3abc3bc3d7bc862dc795f555f9c2.tar.bz2
remove call to get android MediaPlayer class
use the global class variable defined in MediaPlayer_jni.h Review URL: https://chromiumcodereview.appspot.com/12625005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@188293 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/android')
-rw-r--r--chrome/android/java/src/org/chromium/chrome/browser/database/SQLiteCursor.java9
1 files changed, 8 insertions, 1 deletions
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/database/SQLiteCursor.java b/chrome/android/java/src/org/chromium/chrome/browser/database/SQLiteCursor.java
index 2297d90..8099e7e 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/database/SQLiteCursor.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/database/SQLiteCursor.java
@@ -9,6 +9,8 @@ import android.database.AbstractCursor;
import android.database.CursorWindow;
import android.util.Log;
+import org.chromium.base.CalledByNative;
+
import java.sql.Types;
/**
@@ -31,10 +33,15 @@ public class SQLiteCursor extends AbstractCursor {
private final Object mMoveLock = new Object();
private final Object mGetBlobLock = new Object();
- SQLiteCursor(int nativeSQLiteCursor) {
+ private SQLiteCursor(int nativeSQLiteCursor) {
mNativeSQLiteCursor = nativeSQLiteCursor;
}
+ @CalledByNative
+ private static SQLiteCursor create(int nativeSQLiteCursor) {
+ return new SQLiteCursor(nativeSQLiteCursor);
+ }
+
@Override
public int getCount() {
synchronized (mMoveLock) {