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

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

Issue 1485743002: Push API: test that default notification is shown on Android when needed. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@PushMessagingInstrumentationTest
Patch Set: Address bauerb's comments. Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/push_messaging/push_messaging_service_observer_android.h ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
new file mode 100644
index 0000000000000000000000000000000000000000..affbcaab3a4385b922e7b24b9b871cd57187c595
--- /dev/null
+++ b/chrome/browser/push_messaging/push_messaging_service_observer_android.cc
@@ -0,0 +1,18 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "chrome/browser/push_messaging/push_messaging_service_observer_android.h"
+
+#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());
+}
« no previous file with comments | « chrome/browser/push_messaging/push_messaging_service_observer_android.h ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698