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

Side by Side Diff: components/gcm_driver/gcm_driver_android.cc

Issue 285203005: Hook components/gcm_driver up to JNI Generator (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments, and add GCMDriver.java to fix compile Created 6 years, 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "components/gcm_driver/gcm_driver_android.h"
6
7 #include "base/android/jni_android.h"
8 #include "jni/GCMDriver_jni.h"
9
10 namespace gcm {
11
12 // Prevents Java_GCMDriver_doNothing from being considered unused.
13 // TODO(johnme): Replace this with something useful.
14 void doNothing() {
bulach 2014/05/15 17:49:09 nit: s/do/Do/ also, unindent below. how come it's
johnme 2014/05/15 19:29:42 Done - I now forward declare it with ALLOW_UNUSED
15 JNIEnv* env = base::android::AttachCurrentThread();
16 gcm::Java_GCMDriver_doNothing(env);
17 }
18
19 // static
20 bool GCMDriverAndroid::RegisterBindings(JNIEnv* env) {
21 return RegisterNativesImpl(env);
22 }
23
24 } // namespace gcm
OLDNEW
« components/gcm_driver/gcm_driver_android.h ('K') | « components/gcm_driver/gcm_driver_android.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698