summaryrefslogtreecommitdiffstats
path: root/base
diff options
context:
space:
mode:
authoraurimas <aurimas@chromium.org>2014-11-18 19:18:50 -0800
committerCommit bot <commit-bot@chromium.org>2014-11-19 03:19:16 +0000
commitdd2467ba8d5e9be2226e1c082932cd1e450f2ce0 (patch)
treecd9325f8e528406817bf5bfb4a4438e9a1fd27ed /base
parentd7727cdb4ce3325838efa4250b79e1ded853d8d7 (diff)
downloadchromium_src-dd2467ba8d5e9be2226e1c082932cd1e450f2ce0.zip
chromium_src-dd2467ba8d5e9be2226e1c082932cd1e450f2ce0.tar.gz
chromium_src-dd2467ba8d5e9be2226e1c082932cd1e450f2ce0.tar.bz2
Upstream ApiCompatibilityUtils for API20+ calls.
BUG=None TBR=nyquist@chromium.org Review URL: https://codereview.chromium.org/738823003 Cr-Commit-Position: refs/heads/master@{#304756}
Diffstat (limited to 'base')
-rw-r--r--base/android/java/src/org/chromium/base/ApiCompatibilityUtils.java16
1 files changed, 0 insertions, 16 deletions
diff --git a/base/android/java/src/org/chromium/base/ApiCompatibilityUtils.java b/base/android/java/src/org/chromium/base/ApiCompatibilityUtils.java
index 2af146b..8b2438c 100644
--- a/base/android/java/src/org/chromium/base/ApiCompatibilityUtils.java
+++ b/base/android/java/src/org/chromium/base/ApiCompatibilityUtils.java
@@ -7,7 +7,6 @@ package org.chromium.base;
import android.animation.ValueAnimator;
import android.annotation.TargetApi;
import android.app.ActivityOptions;
-import android.app.Notification;
import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;
@@ -27,9 +26,6 @@ import android.widget.TextView;
* Utility class to use new APIs that were added after ICS (API level 14).
*/
public class ApiCompatibilityUtils {
-
- private static final String TAG = "ApiCompatibilityUtils";
-
private ApiCompatibilityUtils() {
}
@@ -369,18 +365,6 @@ public class ApiCompatibilityUtils {
}
/**
- * @see android.app.Notification.Builder#setLocalOnly(boolean)
- */
- @SuppressWarnings("deprecation")
- public static Notification build(Notification.Builder builder) {
- if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) {
- return builder.build();
- } else {
- return builder.getNotification();
- }
- }
-
- /**
* @see android.provider.Settings.Global#DEVICE_PROVISIONED
*/
@TargetApi(Build.VERSION_CODES.JELLY_BEAN_MR1)