Index: content/browser/android/content_view_core_impl.cc |
diff --git a/content/browser/android/content_view_core_impl.cc b/content/browser/android/content_view_core_impl.cc |
index 9e70f65118c4b6f12ede2807ccd3ca9ebf4fe158..6495133e3b80a095c50ca74f687e8259f2ec28c0 100644 |
--- a/content/browser/android/content_view_core_impl.cc |
+++ b/content/browser/android/content_view_core_impl.cc |
@@ -1281,6 +1281,7 @@ void ContentViewCoreImpl::SetAccessibilityEnabled(JNIEnv* env, jobject obj, |
void ContentViewCoreImpl::SetTextTrackSettings(JNIEnv* env, |
jobject obj, |
+ jboolean textTracksEnabled, |
jstring textTrackBackgroundColor, |
jstring textTrackFontFamily, |
jstring textTrackFontStyle, |
@@ -1289,6 +1290,7 @@ void ContentViewCoreImpl::SetTextTrackSettings(JNIEnv* env, |
jstring textTrackTextShadow, |
jstring textTrackTextSize) { |
FrameMsg_TextTrackSettings_Params params; |
+ params.text_tracks_enabled = textTracksEnabled; |
params.text_track_background_color = ConvertJavaStringToUTF8( |
env, textTrackBackgroundColor); |
params.text_track_font_family = ConvertJavaStringToUTF8( |
@@ -1303,7 +1305,6 @@ void ContentViewCoreImpl::SetTextTrackSettings(JNIEnv* env, |
env, textTrackTextShadow); |
params.text_track_text_size = ConvertJavaStringToUTF8( |
env, textTrackTextSize); |
- |
web_contents_->GetMainFrame()->SetTextTrackSettings(params); |
} |