OLD | NEW |
---|---|
(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 | |
OLD | NEW |