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

Side by Side Diff: chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationPlatformBridge.java

Issue 2548013002: Remove redundant field initialization in Java code. (Closed)
Patch Set: rebase Created 4 years 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 package org.chromium.chrome.browser.notifications; 5 package org.chromium.chrome.browser.notifications;
6 6
7 import android.app.Notification; 7 import android.app.Notification;
8 import android.app.NotificationManager; 8 import android.app.NotificationManager;
9 import android.app.PendingIntent; 9 import android.app.PendingIntent;
10 import android.app.RemoteInput; 10 import android.app.RemoteInput;
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 private static final int[] EMPTY_VIBRATION_PATTERN = new int[0]; 72 private static final int[] EMPTY_VIBRATION_PATTERN = new int[0];
73 73
74 private static NotificationPlatformBridge sInstance; 74 private static NotificationPlatformBridge sInstance;
75 private static NotificationManagerProxy sNotificationManagerOverride; 75 private static NotificationManagerProxy sNotificationManagerOverride;
76 76
77 private final long mNativeNotificationPlatformBridge; 77 private final long mNativeNotificationPlatformBridge;
78 78
79 private final Context mAppContext; 79 private final Context mAppContext;
80 private final NotificationManagerProxy mNotificationManager; 80 private final NotificationManagerProxy mNotificationManager;
81 81
82 private long mLastNotificationClickMs = 0L; 82 private long mLastNotificationClickMs;
83 83
84 /** 84 /**
85 * Creates a new instance of the NotificationPlatformBridge. 85 * Creates a new instance of the NotificationPlatformBridge.
86 * 86 *
87 * @param nativeNotificationPlatformBridge Instance of the NotificationPlatf ormBridgeAndroid 87 * @param nativeNotificationPlatformBridge Instance of the NotificationPlatf ormBridgeAndroid
88 * class. 88 * class.
89 */ 89 */
90 @CalledByNative 90 @CalledByNative
91 private static NotificationPlatformBridge create(long nativeNotificationPlat formBridge) { 91 private static NotificationPlatformBridge create(long nativeNotificationPlat formBridge) {
92 if (sInstance != null) { 92 if (sInstance != null) {
(...skipping 624 matching lines...) Expand 10 before | Expand all | Expand 10 after
717 717
718 private static native void nativeInitializeNotificationPlatformBridge(); 718 private static native void nativeInitializeNotificationPlatformBridge();
719 719
720 private native void nativeOnNotificationClicked(long nativeNotificationPlatf ormBridgeAndroid, 720 private native void nativeOnNotificationClicked(long nativeNotificationPlatf ormBridgeAndroid,
721 String notificationId, String origin, String profileId, boolean inco gnito, String tag, 721 String notificationId, String origin, String profileId, boolean inco gnito, String tag,
722 String webApkPackage, int actionIndex, String reply); 722 String webApkPackage, int actionIndex, String reply);
723 private native void nativeOnNotificationClosed(long nativeNotificationPlatfo rmBridgeAndroid, 723 private native void nativeOnNotificationClosed(long nativeNotificationPlatfo rmBridgeAndroid,
724 String notificationId, String origin, String profileId, boolean inco gnito, String tag, 724 String notificationId, String origin, String profileId, boolean inco gnito, String tag,
725 boolean byUser); 725 boolean byUser);
726 } 726 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698