Chromium Code Reviews| Index: android_webview/glue/java/src/com/android/webview/chromium/WebViewDelegateFactory.java |
| diff --git a/android_webview/glue/java/src/com/android/webview/chromium/WebViewDelegateFactory.java b/android_webview/glue/java/src/com/android/webview/chromium/WebViewDelegateFactory.java |
| index 212f005dcac0732237798b48668a56cda795000b..13124013dc0d40b8e77c4de299b0fc96dcc51a22 100644 |
| --- a/android_webview/glue/java/src/com/android/webview/chromium/WebViewDelegateFactory.java |
| +++ b/android_webview/glue/java/src/com/android/webview/chromium/WebViewDelegateFactory.java |
| @@ -4,6 +4,7 @@ |
| package com.android.webview.chromium; |
| +import android.annotation.SuppressLint; |
| import android.app.Application; |
| import android.content.Context; |
| import android.content.ContextWrapper; |
| @@ -197,6 +198,7 @@ class WebViewDelegateFactory { |
| * reflection to call into hidden frameworks APIs released in the API-21 version of the |
| * framework. |
| */ |
| + @SuppressLint("NewApi") |
|
newt (away)
2015/10/13 20:41:38
Instead of @SuppressLint("NewApi"), use @TargetApi
michaelbai
2015/10/13 21:40:15
Done.
|
| private static class Api21CompatibilityDelegate implements WebViewDelegate { |
| /** Copy of Trace.TRACE_TAG_WEBVIEW */ |
| private static final long TRACE_TAG_WEBVIEW = 1L << 4; |