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

Unified Diff: media/base/media_android.cc

Issue 13949012: Need to call RegisterJni for testing. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 8 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 | « build/common.gypi ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/media_android.cc
diff --git a/media/base/media_android.cc b/media/base/media_android.cc
index 4e6ffc02cf7859dbeba21445e1249509d0ad2169..8008d48fe2d01b60b2cc5b7c245103fa21bf02c7 100644
--- a/media/base/media_android.cc
+++ b/media/base/media_android.cc
@@ -6,7 +6,9 @@
#include <cpu-features.h>
+#include "base/android/jni_android.h"
#include "base/logging.h"
+#include "media/base/android/media_jni_registrar.h"
namespace media {
@@ -22,6 +24,9 @@ bool InitializeMediaLibrary(const base::FilePath& module_dir) {
}
void InitializeMediaLibraryForTesting() {
+ // Register JNI bindings for android.
+ JNIEnv* env = base::android::AttachCurrentThread();
+ RegisterJni(env);
}
bool IsMediaLibraryInitialized() {
« no previous file with comments | « build/common.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698