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

Unified Diff: chrome/browser/push_messaging/push_messaging_service_observer_android.cc

Issue 2146753002: Android: Remove unneeded RegisterNatives() calls (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Android: Don't require RegisterNatives if there are none Created 4 years, 4 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: chrome/browser/push_messaging/push_messaging_service_observer_android.cc
diff --git a/chrome/browser/push_messaging/push_messaging_service_observer_android.cc b/chrome/browser/push_messaging/push_messaging_service_observer_android.cc
index affbcaab3a4385b922e7b24b9b871cd57187c595..449d6350f45a542fc00fa5e69e4f48407c21eb33 100644
--- a/chrome/browser/push_messaging/push_messaging_service_observer_android.cc
+++ b/chrome/browser/push_messaging/push_messaging_service_observer_android.cc
@@ -7,11 +7,6 @@
#include "base/android/jni_android.h"
#include "jni/PushMessagingServiceObserver_jni.h"
-// static
-bool PushMessagingServiceObserverAndroid::RegisterJni(JNIEnv* env) {
- return chrome::android::RegisterNativesImpl(env);
-}
-
void PushMessagingServiceObserverAndroid::OnMessageHandled() {
chrome::android::Java_PushMessagingServiceObserver_onMessageHandled(
base::android::AttachCurrentThread());

Powered by Google App Engine
This is Rietveld 408576698