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

Side by Side Diff: components/gcm_driver/instance_id/android/component_jni_registrar.cc

Issue 1830983002: Implement InstanceIDAndroid using InstanceIDWithSubtype.java (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@iid1subtype
Patch Set: Make mNativeInstanceIDAndroid non-final Created 4 years, 8 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
OLDNEW
(Empty)
1 // Copyright 2016 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/instance_id/android/component_jni_registrar.h"
6
7 #include "base/android/jni_android.h"
8 #include "base/android/jni_registrar.h"
9 #include "base/macros.h"
10 #include "components/gcm_driver/instance_id/instance_id_android.h"
11
12 namespace instance_id {
13 namespace android {
14
15 static base::android::RegistrationMethod kInstanceIDRegisteredMethods[] = {
16 {"InstanceID", instance_id::InstanceIDAndroid::RegisterJni},
17 };
18
19 bool RegisterInstanceIDJni(JNIEnv* env) {
20 return base::android::RegisterNativeMethods(
21 env, kInstanceIDRegisteredMethods,
22 arraysize(kInstanceIDRegisteredMethods));
23 }
24
25 } // namespace android
26 } // namespace instance_id
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698