Merge pull request #2132 from eseidelGoogle/thread_name

Give the java ui thread a name in trace files
This commit is contained in:
Eric Seidel 2015-12-03 11:31:24 -08:00
commit fff4d5b8c1

View File

@ -60,6 +60,7 @@ static void Init(JNIEnv* env,
jclass clazz,
jobject context,
jobjectArray jargs) {
base::PlatformThread::SetName("java_ui_thread");
base::android::ScopedJavaLocalRef<jobject> scoped_context(env, context);
base::android::InitApplicationContext(env, scoped_context);