| Index: chromecast/browser/android/cast_window_manager.cc
|
| diff --git a/chromecast/browser/android/cast_window_manager.cc b/chromecast/browser/android/cast_window_manager.cc
|
| index c53005b46b3ad0ac92a1e91b0ca60439bbb8a149..c4e2f1274eaf582c7b61d2bf4e5771bb192f56eb 100644
|
| --- a/chromecast/browser/android/cast_window_manager.cc
|
| +++ b/chromecast/browser/android/cast_window_manager.cc
|
| @@ -52,12 +52,16 @@ bool RegisterCastWindowManager(JNIEnv* env) {
|
| return RegisterNativesImpl(env);
|
| }
|
|
|
| -void Init(JNIEnv* env, jclass clazz, jobject obj) {
|
| +void Init(JNIEnv* env,
|
| + const JavaParamRef<jclass>& clazz,
|
| + const JavaParamRef<jobject>& obj) {
|
| g_window_manager.Get().Reset(
|
| base::android::ScopedJavaLocalRef<jobject>(env, obj));
|
| }
|
|
|
| -jlong LaunchCastWindow(JNIEnv* env, jclass clazz, jstring jurl) {
|
| +jlong LaunchCastWindow(JNIEnv* env,
|
| + const JavaParamRef<jclass>& clazz,
|
| + const JavaParamRef<jstring>& jurl) {
|
| GURL url(base::android::ConvertJavaStringToUTF8(env, jurl));
|
| return reinterpret_cast<jlong>(
|
| CastWindowAndroid::CreateNewWindow(
|
| @@ -65,8 +69,10 @@ jlong LaunchCastWindow(JNIEnv* env, jclass clazz, jstring jurl) {
|
| url));
|
| }
|
|
|
| -void StopCastWindow(JNIEnv* env, jclass clazz,
|
| - jlong nativeCastWindow, jboolean gracefully) {
|
| +void StopCastWindow(JNIEnv* env,
|
| + const JavaParamRef<jclass>& clazz,
|
| + jlong nativeCastWindow,
|
| + jboolean gracefully) {
|
| CastWindowAndroid* window =
|
| reinterpret_cast<CastWindowAndroid*>(nativeCastWindow);
|
| DCHECK(window);
|
| @@ -76,7 +82,9 @@ void StopCastWindow(JNIEnv* env, jclass clazz,
|
| window->Destroy();
|
| }
|
|
|
| -void EnableDevTools(JNIEnv* env, jclass clazz, jboolean enable) {
|
| +void EnableDevTools(JNIEnv* env,
|
| + const JavaParamRef<jclass>& clazz,
|
| + jboolean enable) {
|
| DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
|
| CastBrowserProcess::GetInstance()->pref_service()->SetBoolean(
|
| prefs::kEnableRemoteDebugging, enable);
|
|
|