| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 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 "net/android/cellular_signal_strength.h" | 5 #include "net/android/cellular_signal_strength.h" |
| 6 | 6 |
| 7 #include "base/android/context_utils.h" | 7 #include "base/android/context_utils.h" |
| 8 #include "jni/AndroidCellularSignalStrength_jni.h" | 8 #include "jni/AndroidCellularSignalStrength_jni.h" |
| 9 | 9 |
| 10 namespace net { | 10 namespace net { |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 Java_AndroidCellularSignalStrength_getSignalStrengthLevel( | 43 Java_AndroidCellularSignalStrength_getSignalStrengthLevel( |
| 44 base::android::AttachCurrentThread(), | 44 base::android::AttachCurrentThread(), |
| 45 base::android::GetApplicationContext()); | 45 base::android::GetApplicationContext()); |
| 46 if (signal_strength_level_tmp == ERROR_NOT_SUPPORTED) | 46 if (signal_strength_level_tmp == ERROR_NOT_SUPPORTED) |
| 47 return false; | 47 return false; |
| 48 | 48 |
| 49 *signal_strength_level = signal_strength_level_tmp; | 49 *signal_strength_level = signal_strength_level_tmp; |
| 50 return true; | 50 return true; |
| 51 } | 51 } |
| 52 | 52 |
| 53 bool Register(JNIEnv* env) { | |
| 54 return RegisterNativesImpl(env); | |
| 55 } | |
| 56 | |
| 57 } // namespace cellular_signal_strength | 53 } // namespace cellular_signal_strength |
| 58 | 54 |
| 59 } // namespace android | 55 } // namespace android |
| 60 | 56 |
| 61 } // namespace net | 57 } // namespace net |
| OLD | NEW |