From d10c108dc8348430bbbf6a7f91e7b19d22aa671a Mon Sep 17 00:00:00 2001 From: "michaelbai@chromium.org" Date: Thu, 14 Nov 2013 20:03:19 +0000 Subject: Use getContentViewClient instead of mContentViewClient It create a new instance if mContentViewClient is null BUG=319198 NOTRY=true Review URL: https://codereview.chromium.org/73033002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@235221 0039d316-1c4b-4281-b951-d872f2087c98 --- .../java/src/org/chromium/content/browser/ContentViewCore.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java b/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java index c175c5b..b10e4ae 100644 --- a/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java +++ b/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java @@ -3218,12 +3218,12 @@ public class ContentViewCore @CalledByNative private ContentVideoViewClient getContentVideoViewClient() { - return mContentViewClient.getContentVideoViewClient(); + return getContentViewClient().getContentVideoViewClient(); } @CalledByNative private boolean shouldBlockMediaRequest(String url) { - return mContentViewClient.shouldBlockMediaRequest(url); + return getContentViewClient().shouldBlockMediaRequest(url); } private native void nativeOnJavaContentViewCoreDestroyed(int nativeContentViewCoreImpl); -- cgit v1.1