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

Issue 363563005: Adding jobject null check before calling CalledByNative JNI functions (Closed)

Created:
6 years, 5 months ago by Abhishek
Modified:
6 years, 5 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Removed all is_null check before calling any CalledByNative JNI functions. BUG=None Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=284776

Patch Set 1 #

Total comments: 4

Patch Set 2 : updated #

Patch Set 3 : reverting patch set#2 changes #

Patch Set 4 : removing all is_null check #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -29 lines) Patch
M chrome/browser/android/tab_android.cc View 1 2 3 3 chunks +7 lines, -29 lines 0 comments Download

Messages

Total messages: 28 (0 generated)
Abhishek
PTAL!
6 years, 5 months ago (2014-07-01 12:09:04 UTC) #1
Yaron
On 2014/07/01 12:09:04, Abhishek wrote: > PTAL! Please pick one reviewer and don't mail all ...
6 years, 5 months ago (2014-07-01 22:41:58 UTC) #2
Abhishek
On 2014/07/01 22:41:58, Yaron wrote: > On 2014/07/01 12:09:04, Abhishek wrote: > > PTAL! > ...
6 years, 5 months ago (2014-07-02 00:47:27 UTC) #3
Yaron
probably fine, just the one q https://codereview.chromium.org/363563005/diff/1/chrome/browser/android/tab_android.cc File chrome/browser/android/tab_android.cc (right): https://codereview.chromium.org/363563005/diff/1/chrome/browser/android/tab_android.cc#newcode237 chrome/browser/android/tab_android.cc:237: ScopedJavaLocalRef<jobject> obj = ...
6 years, 5 months ago (2014-07-02 17:36:16 UTC) #4
Abhishek
PTAL! https://codereview.chromium.org/363563005/diff/1/chrome/browser/android/tab_android.cc File chrome/browser/android/tab_android.cc (right): https://codereview.chromium.org/363563005/diff/1/chrome/browser/android/tab_android.cc#newcode237 chrome/browser/android/tab_android.cc:237: ScopedJavaLocalRef<jobject> obj = weak_java_tab_.get(env); On 2014/07/02 17:36:16, Yaron ...
6 years, 5 months ago (2014-07-02 19:44:56 UTC) #5
Yaron
https://codereview.chromium.org/363563005/diff/1/chrome/browser/android/tab_android.cc File chrome/browser/android/tab_android.cc (right): https://codereview.chromium.org/363563005/diff/1/chrome/browser/android/tab_android.cc#newcode237 chrome/browser/android/tab_android.cc:237: ScopedJavaLocalRef<jobject> obj = weak_java_tab_.get(env); On 2014/07/02 19:44:56, Abhishek wrote: ...
6 years, 5 months ago (2014-07-02 20:25:39 UTC) #6
Abhishek
Yeah, I got it. Please take a look at updated patch as suggested. https://codereview.chromium.org/363563005/diff/1/chrome/browser/android/tab_android.cc File ...
6 years, 5 months ago (2014-07-03 05:10:42 UTC) #7
Yaron
On 2014/07/03 05:10:42, Abhishek wrote: > Yeah, I got it. > Please take a look ...
6 years, 5 months ago (2014-07-07 17:14:01 UTC) #8
David Trainor- moved to gerrit
Can the Tab really be gone without this class being gone? If so Tab#destroy() wasn't ...
6 years, 5 months ago (2014-07-07 18:23:02 UTC) #9
David Trainor- moved to gerrit
On 2014/07/07 18:23:02, David Trainor wrote: > Can the Tab really be gone without this ...
6 years, 5 months ago (2014-07-07 18:24:24 UTC) #10
Abhishek
On 2014/07/07 17:14:01, Yaron wrote: > On 2014/07/03 05:10:42, Abhishek wrote: > > Yeah, I ...
6 years, 5 months ago (2014-07-08 11:41:47 UTC) #11
Yaron
On 2014/07/08 11:41:47, Abhishek wrote: > On 2014/07/07 17:14:01, Yaron wrote: > > On 2014/07/03 ...
6 years, 5 months ago (2014-07-08 21:44:44 UTC) #12
David Trainor- moved to gerrit
On 2014/07/08 21:44:44, Yaron wrote: > On 2014/07/08 11:41:47, Abhishek wrote: > > On 2014/07/07 ...
6 years, 5 months ago (2014-07-09 03:24:13 UTC) #13
Abhishek
On 2014/07/09 03:24:13, David Trainor wrote: > On 2014/07/08 21:44:44, Yaron wrote: > > On ...
6 years, 5 months ago (2014-07-09 09:20:39 UTC) #14
David Trainor- moved to gerrit
On 2014/07/09 09:20:39, Abhishek wrote: > On 2014/07/09 03:24:13, David Trainor wrote: > > On ...
6 years, 5 months ago (2014-07-09 20:40:04 UTC) #15
Yaron
I think that's reasonable. tbh, if it works, I prefer it because it's easier to ...
6 years, 5 months ago (2014-07-09 20:41:47 UTC) #16
David Trainor- moved to gerrit
lgtm
6 years, 5 months ago (2014-07-22 07:17:30 UTC) #17
Abhishek
The CQ bit was checked by abhishek.a21@samsung.com
6 years, 5 months ago (2014-07-22 08:33:19 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/abhishek.a21@samsung.com/363563005/60001
6 years, 5 months ago (2014-07-22 08:34:15 UTC) #19
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_chromium_rel on tryserver.chromium ...
6 years, 5 months ago (2014-07-22 10:33:45 UTC) #20
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-07-22 11:34:21 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/win_chromium_x64_rel/builds/33018)
6 years, 5 months ago (2014-07-22 11:34:22 UTC) #22
Abhishek
On 2014/07/22 11:34:22, I haz the power (commit-bot) wrote: > Try jobs failed on following ...
6 years, 5 months ago (2014-07-22 12:26:47 UTC) #23
Yaron
On 2014/07/22 12:26:47, Abhishek wrote: > On 2014/07/22 11:34:22, I haz the power (commit-bot) wrote: ...
6 years, 5 months ago (2014-07-22 17:20:33 UTC) #24
Yaron
That said, please update the CL description because the underlying code has changed
6 years, 5 months ago (2014-07-22 17:20:52 UTC) #25
Abhishek
The CQ bit was checked by abhishek.a21@samsung.com
6 years, 5 months ago (2014-07-22 18:48:06 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/abhishek.a21@samsung.com/363563005/60001
6 years, 5 months ago (2014-07-22 18:49:38 UTC) #27
commit-bot: I haz the power
6 years, 5 months ago (2014-07-22 21:21:08 UTC) #28
Message was sent while issue was closed.
Change committed as 284776

Powered by Google App Engine
This is Rietveld 408576698