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

Unified Diff: base/android/java/src/org/chromium/base/ApiCompatibilityUtils.java

Issue 754433003: Update from https://crrev.com/305340 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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
« no previous file with comments | « base/allocator/allocator.gyp ('k') | base/android/java/src/org/chromium/base/CommandLine.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/android/java/src/org/chromium/base/ApiCompatibilityUtils.java
diff --git a/base/android/java/src/org/chromium/base/ApiCompatibilityUtils.java b/base/android/java/src/org/chromium/base/ApiCompatibilityUtils.java
index 2af146b523c76d50bf07c09bf43c93335f9fd23b..8b2438c950e3f9af11ee0629252837c264563e8e 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)
« no previous file with comments | « base/allocator/allocator.gyp ('k') | base/android/java/src/org/chromium/base/CommandLine.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698