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

Issue 386983002: Correct the usage of finalize in TracingControllerAndroid class. (Closed)

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

Description

Correct the usage of finalize in TracingControllerAndroid class. TracingControllerAndroid should destroy its native instance when it is done instead of relying on finalize() to destroy it, as vm does not guaranteed finalize() will be called. (source: http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html#finalize%28%29) Implement destroy() to immediately destroy native instance. BUG=None. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=283177

Patch Set 1 #

Total comments: 4

Patch Set 2 : updated as per comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -0 lines) Patch
M AUTHORS View 1 chunk +1 line, -0 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/app/ContentApplication.java View 1 chunk +1 line, -0 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/TracingControllerAndroid.java View 1 chunk +9 lines, -0 lines 0 comments Download
M content/public/android/javatests/src/org/chromium/content/browser/TracingControllerAndroidTest.java View 1 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
wajahat
The CQ bit was checked by wajahat.s@samsung.com
6 years, 5 months ago (2014-07-11 13:10:54 UTC) #1
wajahat
The CQ bit was unchecked by wajahat.s@samsung.com
6 years, 5 months ago (2014-07-11 13:10:55 UTC) #2
wajahat
Please review, Thanks!
6 years, 5 months ago (2014-07-11 13:18:42 UTC) #3
wajahat
6 years, 5 months ago (2014-07-14 06:49:51 UTC) #4
wajahat
PTAL!
6 years, 5 months ago (2014-07-14 06:56:20 UTC) #5
Sami
https://codereview.chromium.org/386983002/diff/1/content/public/android/javatests/src/org/chromium/content/browser/TracingControllerAndroidTest.java File content/public/android/javatests/src/org/chromium/content/browser/TracingControllerAndroidTest.java (right): https://codereview.chromium.org/386983002/diff/1/content/public/android/javatests/src/org/chromium/content/browser/TracingControllerAndroidTest.java#newcode64 content/public/android/javatests/src/org/chromium/content/browser/TracingControllerAndroidTest.java:64: // destroy native tracing controller objects. nit: This comment ...
6 years, 5 months ago (2014-07-14 09:46:50 UTC) #6
wajahat
@Sami, Thanks for review ! Changes Incorporated PTAL! https://codereview.chromium.org/386983002/diff/1/content/public/android/javatests/src/org/chromium/content/browser/TracingControllerAndroidTest.java File content/public/android/javatests/src/org/chromium/content/browser/TracingControllerAndroidTest.java (right): https://codereview.chromium.org/386983002/diff/1/content/public/android/javatests/src/org/chromium/content/browser/TracingControllerAndroidTest.java#newcode64 content/public/android/javatests/src/org/chromium/content/browser/TracingControllerAndroidTest.java:64: // ...
6 years, 5 months ago (2014-07-14 10:04:13 UTC) #7
Sami
Thank you, lgtm.
6 years, 5 months ago (2014-07-14 10:14:19 UTC) #8
wajahat
The CQ bit was checked by wajahat.s@samsung.com
6 years, 5 months ago (2014-07-14 10:29:40 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wajahat.s@samsung.com/386983002/20001
6 years, 5 months ago (2014-07-14 10:30:50 UTC) #10
wajahat
The CQ bit was unchecked by wajahat.s@samsung.com
6 years, 5 months ago (2014-07-14 10:45:50 UTC) #11
wajahat
Presubmit failed due, Missing LGTM from an OWNER for these files: content/public/android/java/src/org/chromium/content/app/ContentApplication.java (benm, tedchoc, yfriedman) ...
6 years, 5 months ago (2014-07-14 10:59:12 UTC) #12
jdduke (slow)
On 2014/07/14 10:59:12, wajahat wrote: > Presubmit failed due, > Missing LGTM from an OWNER ...
6 years, 5 months ago (2014-07-14 15:11:08 UTC) #13
Yaron
lgtm
6 years, 5 months ago (2014-07-14 15:54:21 UTC) #14
wajahat
The CQ bit was checked by wajahat.s@samsung.com
6 years, 5 months ago (2014-07-15 05:16:39 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wajahat.s@samsung.com/386983002/20001
6 years, 5 months ago (2014-07-15 05:17:55 UTC) #16
commit-bot: I haz the power
Change committed as 283177
6 years, 5 months ago (2014-07-15 10:29:48 UTC) #17
wajahat
6 years, 3 months ago (2014-08-27 14:59:29 UTC) #18
Message was sent while issue was closed.
Patchset #3 (id:40001) has been deleted

Powered by Google App Engine
This is Rietveld 408576698