Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(680)

Unified Diff: android_webview/glue/java/src/com/android/webview/chromium/WebViewContentsClientAdapter.java

Issue 2895293002: Android: tidy up outdated version checks. (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: android_webview/glue/java/src/com/android/webview/chromium/WebViewContentsClientAdapter.java
diff --git a/android_webview/glue/java/src/com/android/webview/chromium/WebViewContentsClientAdapter.java b/android_webview/glue/java/src/com/android/webview/chromium/WebViewContentsClientAdapter.java
index 15ccdf2b191c936ab7903f577b78aeb7db05b938..2a3931fe5803fadb5907c18abb2746e68c639c8a 100644
--- a/android_webview/glue/java/src/com/android/webview/chromium/WebViewContentsClientAdapter.java
+++ b/android_webview/glue/java/src/com/android/webview/chromium/WebViewContentsClientAdapter.java
@@ -349,8 +349,7 @@ class WebViewContentsClientAdapter extends AwContentsClient {
TraceEvent.begin("WebViewContentsClientAdapter.shouldOverrideUrlLoading");
if (TRACE) Log.d(TAG, "shouldOverrideUrlLoading=" + request.url);
boolean result;
- if (Build.VERSION.CODENAME.equals("N")
- || Build.VERSION.SDK_INT > Build.VERSION_CODES.M) {
+ if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
result = mWebViewClient.shouldOverrideUrlLoading(
mWebView, new WebResourceRequestImpl(request));
} else {

Powered by Google App Engine
This is Rietveld 408576698