| Index: content/public/android/java/src/org/chromium/content/browser/accessibility/captioning/CaptioningBridgeFactory.java
|
| diff --git a/content/public/android/java/src/org/chromium/content/browser/accessibility/captioning/CaptioningBridgeFactory.java b/content/public/android/java/src/org/chromium/content/browser/accessibility/captioning/CaptioningBridgeFactory.java
|
| index 69372c4b142eb8983000d8ab651037b32a039685..1d09cf056f6f1bdd9e9cc51d6d29c8e03726dd7e 100644
|
| --- a/content/public/android/java/src/org/chromium/content/browser/accessibility/captioning/CaptioningBridgeFactory.java
|
| +++ b/content/public/android/java/src/org/chromium/content/browser/accessibility/captioning/CaptioningBridgeFactory.java
|
| @@ -4,10 +4,9 @@
|
|
|
| package org.chromium.content.browser.accessibility.captioning;
|
|
|
| +import android.content.Context;
|
| import android.os.Build;
|
|
|
| -import org.chromium.content.browser.ContentViewCore;
|
| -
|
| /**
|
| * Returns the best captions bridge available. If the API level is lower than KitKat, a no-op
|
| * bridge is returned since those systems didn't support this functionality.
|
| @@ -16,12 +15,12 @@ public class CaptioningBridgeFactory {
|
| /**
|
| * Create and return the best SystemCaptioningBridge available.
|
| *
|
| - * @param contentViewCore the ContentViewCore to create the bridge with
|
| + * @param context Context associated with the activity.
|
| * @return the best SystemCaptioningBridge available.
|
| */
|
| - public static SystemCaptioningBridge create(ContentViewCore contentViewCore) {
|
| + public static SystemCaptioningBridge getSystemCaptioningBridge(Context context) {
|
| if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
|
| - return new KitKatCaptioningBridge(contentViewCore);
|
| + return KitKatCaptioningBridge.getInstance(context);
|
| }
|
| // On older systems, return a CaptioningBridge that does nothing.
|
| return new EmptyCaptioningBridge();
|
|
|