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

Side by Side Diff: net/android/cellular_signal_strength.cc

Issue 2146753002: Android: Remove unneeded RegisterNatives() calls (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Android: Don't require RegisterNatives if there are none 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
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698