|
Make GetApplicationContext return a JavaRef.
Instead of returning a bare jobject, return a const reference to a
JavaRef, making it clearer that the caller does not receive ownership.
Most uses pass the result directly to a Java method; update the cases
which store it in a variable or pass it elsewhere.
Also, clean up the code surrounding the GetApplicationContext calls a
bit:
- There's no need to DCHECK this or AttachCurrentThread as the
implementations already do that internally
- Change method parameters that take contexts as jobject to JavaRef, and
also other parameters of those methods where reasonable.
BUG= 506850
Committed: https://crrev.com/314ad6c309924d08e12a66a90c1b07558ad75c50
Cr-Commit-Position: refs/heads/master@{#412219}
Total comments: 1
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+83 lines, -88 lines) |
Patch |
|
M |
android_webview/native/android_protocol_handler.cc
|
View
|
|
1 chunk |
+1 line, -6 lines |
0 comments
|
Download
|
|
M |
base/android/context_utils.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
base/android/context_utils.cc
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
chrome/browser/invalidation/invalidation_service_factory_android.h
|
View
|
|
2 chunks |
+5 lines, -5 lines |
0 comments
|
Download
|
|
M |
chrome/browser/invalidation/invalidation_service_factory_android.cc
|
View
|
|
3 chunks |
+6 lines, -10 lines |
0 comments
|
Download
|
|
M |
components/invalidation/impl/invalidation_service_android.h
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
components/invalidation/impl/invalidation_service_android.cc
|
View
|
|
1 chunk |
+4 lines, -3 lines |
0 comments
|
Download
|
|
M |
content/browser/android/composited_touch_handle_drawable.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
content/browser/media/android/media_resource_getter_impl.cc
|
View
|
|
3 chunks |
+3 lines, -1 line |
0 comments
|
Download
|
|
M |
media/base/android/media_player_android.h
|
View
|
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
media/base/android/media_player_android.cc
|
View
|
|
2 chunks |
+7 lines, -5 lines |
0 comments
|
Download
|
|
M |
media/base/android/media_player_bridge.cc
|
View
|
|
4 chunks |
+4 lines, -3 lines |
0 comments
|
Download
|
|
M |
media/base/android/media_player_listener.h
|
View
|
|
1 chunk |
+22 lines, -18 lines |
0 comments
|
Download
|
|
M |
media/base/android/media_player_listener.cc
|
View
|
|
3 chunks |
+4 lines, -2 lines |
0 comments
|
Download
|
|
M |
media/base/android/media_source_player.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
media/capture/video/android/video_capture_device_factory_android.cc
|
View
|
|
2 chunks |
+3 lines, -1 line |
0 comments
|
Download
|
|
M |
ui/android/window_android.cc
|
View
|
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
ui/base/clipboard/clipboard_android.cc
|
View
|
|
1 chunk |
+2 lines, -8 lines |
0 comments
|
Download
|
|
M |
ui/base/clipboard/clipboard_android_unittest.cc
|
View
|
1
|
2 chunks |
+2 lines, -4 lines |
1 comment
|
Download
|
|
M |
ui/base/touch/touch_device_android.cc
|
View
|
|
3 chunks |
+9 lines, -14 lines |
0 comments
|
Download
|
Dependent Patchsets:
Total messages: 23 (8 generated)
|