summaryrefslogtreecommitdiff
path: root/chromium/device/bluetooth/android/wrappers.cc
blob: 4ad3bc2e9a797c85fe0ce79195e3c4d442d676c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// 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 "device/bluetooth/android/wrappers.h"

#include "base/android/context_utils.h"
#include "base/android/jni_android.h"
#include "jni/Wrappers_jni.h"

using base::android::AttachCurrentThread;
using base::android::ScopedJavaLocalRef;

namespace device {

ScopedJavaLocalRef<jobject> BluetoothAdapterWrapper_CreateWithDefaultAdapter() {
  return Java_BluetoothAdapterWrapper_createWithDefaultAdapter(
      AttachCurrentThread(), base::android::GetApplicationContext());
}

}  // namespace device