| OLD | NEW |
| 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 "chrome/browser/ui/android/bluetooth_chooser_android.h" | 5 #include "chrome/browser/ui/android/bluetooth_chooser_android.h" |
| 6 | 6 |
| 7 #include "base/android/jni_android.h" | 7 #include "base/android/jni_android.h" |
| 8 #include "base/android/jni_string.h" | 8 #include "base/android/jni_string.h" |
| 9 #include "base/strings/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" |
| 10 #include "chrome/browser/ssl/chrome_security_state_model_client.h" | 10 #include "chrome/browser/ssl/chrome_security_state_model_client.h" |
| 11 #include "chrome/browser/ssl/security_state_model.h" | |
| 12 #include "chrome/browser/ui/android/view_android_helper.h" | 11 #include "chrome/browser/ui/android/view_android_helper.h" |
| 13 #include "content/public/browser/android/content_view_core.h" | 12 #include "content/public/browser/android/content_view_core.h" |
| 14 #include "jni/BluetoothChooserDialog_jni.h" | 13 #include "jni/BluetoothChooserDialog_jni.h" |
| 15 #include "ui/android/window_android.h" | 14 #include "ui/android/window_android.h" |
| 16 | 15 |
| 17 using base::android::AttachCurrentThread; | 16 using base::android::AttachCurrentThread; |
| 18 using base::android::ConvertUTF8ToJavaString; | 17 using base::android::ConvertUTF8ToJavaString; |
| 19 using base::android::ConvertUTF16ToJavaString; | 18 using base::android::ConvertUTF16ToJavaString; |
| 20 using base::android::ScopedJavaLocalRef; | 19 using base::android::ScopedJavaLocalRef; |
| 21 | 20 |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 void BluetoothChooserAndroid::ShowNeedLocationPermissionLink( | 146 void BluetoothChooserAndroid::ShowNeedLocationPermissionLink( |
| 148 JNIEnv* env, | 147 JNIEnv* env, |
| 149 const JavaParamRef<jobject>& obj) { | 148 const JavaParamRef<jobject>& obj) { |
| 150 event_handler_.Run(Event::SHOW_NEED_LOCATION_HELP, ""); | 149 event_handler_.Run(Event::SHOW_NEED_LOCATION_HELP, ""); |
| 151 } | 150 } |
| 152 | 151 |
| 153 // static | 152 // static |
| 154 bool BluetoothChooserAndroid::Register(JNIEnv* env) { | 153 bool BluetoothChooserAndroid::Register(JNIEnv* env) { |
| 155 return RegisterNativesImpl(env); | 154 return RegisterNativesImpl(env); |
| 156 } | 155 } |
| OLD | NEW |