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

Side by Side Diff: media/midi/midi_device_android.cc

Issue 2199913003: media: Remove unneeded RegisterNatives() call (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@jnireg1
Patch Set: rebase 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 unified diff | Download patch
« no previous file with comments | « media/midi/midi_device_android.h ('k') | media/midi/midi_jni_registrar.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "media/midi/midi_device_android.h" 5 #include "media/midi/midi_device_android.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "jni/MidiDeviceAndroid_jni.h" 9 #include "jni/MidiDeviceAndroid_jni.h"
10 #include "media/midi/midi_output_port_android.h" 10 #include "media/midi/midi_output_port_android.h"
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 } 53 }
54 54
55 std::string MidiDeviceAndroid::GetDeviceVersion() { 55 std::string MidiDeviceAndroid::GetDeviceVersion() {
56 JNIEnv* env = base::android::AttachCurrentThread(); 56 JNIEnv* env = base::android::AttachCurrentThread();
57 ScopedJavaLocalRef<jstring> ret = 57 ScopedJavaLocalRef<jstring> ret =
58 Java_MidiDeviceAndroid_getVersion(env, raw_device_.obj()); 58 Java_MidiDeviceAndroid_getVersion(env, raw_device_.obj());
59 return std::string(env->GetStringUTFChars(ret.obj(), nullptr), 59 return std::string(env->GetStringUTFChars(ret.obj(), nullptr),
60 env->GetStringUTFLength(ret.obj())); 60 env->GetStringUTFLength(ret.obj()));
61 } 61 }
62 62
63 bool MidiDeviceAndroid::Register(JNIEnv* env) {
64 return RegisterNativesImpl(env);
65 }
66
67 } // namespace midi 63 } // namespace midi
68 } // namespace media 64 } // namespace media
OLDNEW
« no previous file with comments | « media/midi/midi_device_android.h ('k') | media/midi/midi_jni_registrar.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698