|
jni_generator: Make all object-returning natives return ScopedJavaLocalRef.
Instead of only expecting C++ methods to return ScopedJavaLocalRefs for
object return values, apply this to all native functions. This further
reduces the difference between methods and nonmethods. The vast majority
of native nonmethod functions already have a ScopedJavaLocalRef and
currently write "return foo.Release()" to return it, so this is a fairly
small change in actual behaviour; only a few functions need to create
one.
Also, remove the namespace qualifiers from the existing generated
references to ScopedJavaLocalRef, since jni_generator_helper.h already
includes a "using" declaration for it.
BUG= 379897
Committed: https://crrev.com/be33e691030b6de0351d9a7eeaaca218685dd5bb
Cr-Commit-Position: refs/heads/master@{#345147}
Total comments: 1
Total comments: 1
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+623 lines, -595 lines) |
Patch |
 |
M |
android_webview/native/android_protocol_handler.cc
|
View
|
1
|
1 chunk |
+6 lines, -8 lines |
0 comments
|
Download
|
 |
M |
android_webview/native/aw_contents_statics.cc
|
View
|
1
|
2 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
android_webview/native/aw_settings.cc
|
View
|
1
|
1 chunk |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
android_webview/native/cookie_manager.cc
|
View
|
1
|
1 chunk |
+4 lines, -3 lines |
0 comments
|
Download
|
 |
M |
base/android/command_line_android.cc
|
View
|
1
|
1 chunk |
+5 lines, -4 lines |
0 comments
|
Download
|
 |
M |
base/android/field_trial_list.cc
|
View
|
1
|
1 chunk |
+4 lines, -5 lines |
0 comments
|
Download
|
 |
M |
base/android/jni_generator/golden_sample_for_tests_jni.h
|
View
|
|
5 chunks |
+9 lines, -8 lines |
0 comments
|
Download
|
 |
M |
base/android/jni_generator/jni_generator.py
|
View
|
|
4 chunks |
+10 lines, -8 lines |
0 comments
|
Download
|
 |
M |
base/android/jni_generator/sample_for_tests.cc
|
View
|
1
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
base/android/jni_generator/testCalledByNatives.golden
|
View
|
|
17 chunks |
+41 lines, -43 lines |
0 comments
|
Download
|
 |
M |
base/android/jni_generator/testConstantsFromJavaP.golden
|
View
|
|
16 chunks |
+40 lines, -45 lines |
0 comments
|
Download
|
 |
M |
base/android/jni_generator/testEagerCalledByNativesOption.golden
|
View
|
|
1 chunk |
+2 lines, -3 lines |
0 comments
|
Download
|
 |
M |
base/android/jni_generator/testFromJavaP.golden
|
View
|
|
2 chunks |
+4 lines, -5 lines |
0 comments
|
Download
|
 |
M |
base/android/jni_generator/testNativeExportsOption.golden
|
View
|
|
4 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
base/android/jni_generator/testNativeExportsOptionalOption.golden
|
View
|
|
4 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
base/android/jni_generator/testNatives.golden
|
View
|
|
3 chunks |
+11 lines, -8 lines |
0 comments
|
Download
|
 |
M |
base/android/library_loader/library_loader_hooks.cc
|
View
|
1
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/android/chrome_application.cc
|
View
|
1
|
1 chunk |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/android/download/chrome_download_delegate.cc
|
View
|
1
|
1 chunk |
+5 lines, -4 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/android/omnibox/autocomplete_controller_android.cc
|
View
|
1
|
2 chunks |
+7 lines, -6 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/android/password_ui_view_android.cc
|
View
|
1
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/android/preferences/autofill/autofill_profile_bridge.cc
|
View
|
1
|
3 chunks |
+11 lines, -10 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/android/preferences/pref_service_bridge.cc
|
View
|
1
|
4 chunks |
+34 lines, -33 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/android/profiles/profile_downloader_android.cc
|
View
|
1
|
4 chunks |
+14 lines, -12 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/android/tab_state.h
|
View
|
1
2
|
1 chunk |
+6 lines, -6 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/android/tab_state.cc
|
View
|
1
2
|
6 chunks |
+33 lines, -30 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/android/url_utilities.cc
|
View
|
1
|
3 chunks |
+15 lines, -15 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/android/web_contents_factory.cc
|
View
|
1
|
1 chunk |
+6 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/autofill/android/personal_data_manager_android.cc
|
View
|
1
|
1 chunk |
+6 lines, -5 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/dom_distiller/dom_distiller_service_factory_android.h
|
View
|
1
2
3
4
|
2 chunks |
+4 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/dom_distiller/dom_distiller_service_factory_android.cc
|
View
|
1
2
|
1 chunk |
+10 lines, -7 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/dom_distiller/tab_utils_android.cc
|
View
|
1
|
2 chunks |
+7 lines, -7 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/invalidation/invalidation_service_factory_android.h
|
View
|
1
2
3
4
|
3 chunks |
+8 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/invalidation/invalidation_service_factory_android.cc
|
View
|
1
2
|
1 chunk |
+19 lines, -14 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/profiles/profile_android.h
|
View
|
1
2
|
1 chunk |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/profiles/profile_android.cc
|
View
|
1
2
|
2 chunks |
+6 lines, -5 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/signin/oauth2_token_service_delegate_android.h
|
View
|
1
2
3
|
2 chunks |
+3 lines, -3 lines |
1 comment
|
Download
|
 |
M |
chrome/browser/signin/oauth2_token_service_delegate_android.cc
|
View
|
1
2
|
2 chunks |
+6 lines, -6 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/android/certificate_viewer_android.cc
|
View
|
1
|
1 chunk |
+31 lines, -30 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/android/connection_info_popup_android.cc
|
View
|
1
|
2 chunks |
+4 lines, -6 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/android/javascript_app_modal_dialog_android.cc
|
View
|
1
2
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/android/navigation_popup.cc
|
View
|
1
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/android/omnibox/omnibox_url_emphasizer.cc
|
View
|
1
|
2 chunks |
+5 lines, -5 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/android/omnibox/omnibox_view_util.cc
|
View
|
1
|
1 chunk |
+4 lines, -2 lines |
0 comments
|
Download
|
 |
M |
components/cronet/android/chromium_url_request.cc
|
View
|
1
|
5 chunks |
+23 lines, -24 lines |
0 comments
|
Download
|
 |
M |
components/cronet/android/chromium_url_request_context.cc
|
View
|
1
|
1 chunk |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
components/cronet/android/cronet_histogram_manager.cc
|
View
|
1
|
1 chunk |
+4 lines, -3 lines |
0 comments
|
Download
|
 |
M |
components/cronet/android/cronet_library_loader.cc
|
View
|
1
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
components/cronet/android/test/mock_url_request_job_factory.cc
|
View
|
1
|
1 chunk |
+13 lines, -12 lines |
0 comments
|
Download
|
 |
M |
components/cronet/android/test/native_test_server.cc
|
View
|
1
|
1 chunk |
+20 lines, -16 lines |
0 comments
|
Download
|
 |
M |
components/cronet/android/test/quic_test_server.cc
|
View
|
1
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
components/dom_distiller/core/url_utils_android.cc
|
View
|
1
|
2 chunks |
+21 lines, -24 lines |
0 comments
|
Download
|
 |
M |
components/variations/android/variations_associated_data_android.cc
|
View
|
1
|
1 chunk |
+5 lines, -5 lines |
0 comments
|
Download
|
 |
M |
content/browser/android/content_video_view.cc
|
View
|
1
|
1 chunk |
+4 lines, -3 lines |
0 comments
|
Download
|
 |
M |
content/browser/android/content_view_core_impl.cc
|
View
|
1
|
1 chunk |
+5 lines, -7 lines |
0 comments
|
Download
|
 |
M |
content/browser/android/content_view_statics.cc
|
View
|
1
|
1 chunk |
+5 lines, -3 lines |
0 comments
|
Download
|
 |
M |
content/browser/android/tracing_controller_android.cc
|
View
|
1
|
1 chunk |
+3 lines, -4 lines |
0 comments
|
Download
|
 |
M |
content/browser/web_contents/web_contents_android.cc
|
View
|
1
|
1 chunk |
+6 lines, -6 lines |
0 comments
|
Download
|
 |
M |
content/shell/browser/shell_mojo_test_utils_android.cc
|
View
|
1
|
2 chunks |
+5 lines, -4 lines |
0 comments
|
Download
|
 |
M |
mojo/android/system/core_impl.cc
|
View
|
1
|
16 chunks |
+66 lines, -70 lines |
0 comments
|
Download
|
 |
M |
net/android/gurl_utils.cc
|
View
|
1
|
1 chunk |
+4 lines, -6 lines |
0 comments
|
Download
|
 |
M |
net/cert/x509_util_android.cc
|
View
|
1
2
|
1 chunk |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
remoting/client/jni/chromoting_jni_runtime.cc
|
View
|
1
|
1 chunk |
+8 lines, -9 lines |
0 comments
|
Download
|
 |
M |
sync/android/model_type_helper.cc
|
View
|
1
|
1 chunk |
+3 lines, -5 lines |
0 comments
|
Download
|
 |
M |
ui/base/l10n/l10n_util_android.cc
|
View
|
1
|
1 chunk |
+4 lines, -2 lines |
0 comments
|
Download
|
Total messages: 28 (7 generated)
|