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

Issue 10816038: Upstreaming RegisterProcessUtils() (Closed)

Created:
8 years, 5 months ago by aurimas (slooooooooow)
Modified:
8 years ago
Reviewers:
Yaron, Nico, Philippe, digit1, Satish
CC:
chromium-reviews, digit1
Visibility:
Public.

Description

Upstreaming RegisterProcessUtils() Adding RegisterProcessUtils() and the chrome_jni_registrar BUG=137674 TEST=Compile unit_tests_apk target Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=150379

Patch Set 1 #

Total comments: 3

Patch Set 2 : Removed TODO and added intent_helper #

Total comments: 4

Patch Set 3 : Fixing up based on Satish's comments #

Patch Set 4 : Adding Java part of the code #

Patch Set 5 : Rebased #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+99 lines, -1 line) Patch
M chrome/android/java/src/org/chromium/chrome/browser/ProcessUtils.java View 1 2 3 1 chunk +10 lines, -0 lines 0 comments Download
A chrome/browser/android/chrome_jni_registrar.h View 1 chunk +19 lines, -0 lines 0 comments Download
A chrome/browser/android/chrome_jni_registrar.cc View 1 1 chunk +26 lines, -0 lines 0 comments Download
M chrome/browser/android/process_utils.cc View 1 2 3 2 chunks +42 lines, -1 line 3 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
aurimas (slooooooooow)
Hey Yaron, Could you take a look at my CL? Thanks, Aurimas
8 years, 5 months ago (2012-07-24 17:04:54 UTC) #1
Yaron
lgtm but please wait for satish https://chromiumcodereview.appspot.com/10816038/diff/1/chrome/browser/android/process_utils.cc File chrome/browser/android/process_utils.cc (right): https://chromiumcodereview.appspot.com/10816038/diff/1/chrome/browser/android/process_utils.cc#newcode25 chrome/browser/android/process_utils.cc:25: void CloseIdleConnectionsForProfile( Not ...
8 years, 5 months ago (2012-07-24 17:15:47 UTC) #2
aurimas (slooooooooow)
I removed the TODO and added intent_helper to the jni_registrar. Aurimas https://chromiumcodereview.appspot.com/10816038/diff/1/chrome/browser/android/process_utils.cc File chrome/browser/android/process_utils.cc (right): ...
8 years, 5 months ago (2012-07-24 18:12:14 UTC) #3
Satish
https://chromiumcodereview.appspot.com/10816038/diff/5001/chrome/browser/android/process_utils.cc File chrome/browser/android/process_utils.cc (right): https://chromiumcodereview.appspot.com/10816038/diff/5001/chrome/browser/android/process_utils.cc#newcode25 chrome/browser/android/process_utils.cc:25: void CloseIdleConnectionsForProfile( where is this method being used? downstream ...
8 years, 5 months ago (2012-07-25 09:07:20 UTC) #4
aurimas (slooooooooow)
Hello Satish, I've got a few questions for you. See below. Aurimas https://chromiumcodereview.appspot.com/10816038/diff/5001/chrome/browser/android/process_utils.cc File chrome/browser/android/process_utils.cc ...
8 years, 5 months ago (2012-07-25 15:28:29 UTC) #5
aurimas (slooooooooow)
I added the CloseIdleConnections() function wrapped in a #if !defined(ANDROID_UPSTREAM_BRINGUP). It is needed as java ...
8 years, 5 months ago (2012-07-25 16:44:57 UTC) #6
Satish
On 2012/07/25 16:44:57, aurimas1 wrote: > I added the CloseIdleConnections() function wrapped in a #if ...
8 years, 5 months ago (2012-07-26 13:55:09 UTC) #7
Yaron
On 2012/07/26 13:55:09, Satish wrote: > On 2012/07/25 16:44:57, aurimas1 wrote: > > I added ...
8 years, 4 months ago (2012-07-30 17:42:56 UTC) #8
aurimas (slooooooooow)
Hello guys, I've added java part of the Process Utils. Aurimas
8 years, 4 months ago (2012-08-01 20:44:39 UTC) #9
Satish
lgtm
8 years, 4 months ago (2012-08-02 09:36:03 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/aurimas@chromium.org/10816038/11003
8 years, 4 months ago (2012-08-07 15:41:41 UTC) #11
commit-bot: I haz the power
Presubmit check for 10816038-11003 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 4 months ago (2012-08-07 15:41:46 UTC) #12
aurimas (slooooooooow)
Hello Nico, I have received LGTM's from two reviewers already. Could I get a rubber-stamp ...
8 years, 4 months ago (2012-08-07 15:44:44 UTC) #13
Nico
chrome_browser.gypi change lgtm.
8 years, 4 months ago (2012-08-07 16:13:08 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/aurimas@chromium.org/10816038/11003
8 years, 4 months ago (2012-08-07 16:15:51 UTC) #15
commit-bot: I haz the power
Change committed as 150379
8 years, 4 months ago (2012-08-07 18:35:01 UTC) #16
Philippe
https://chromiumcodereview.appspot.com/10816038/diff/11003/chrome/browser/android/process_utils.cc File chrome/browser/android/process_utils.cc (right): https://chromiumcodereview.appspot.com/10816038/diff/11003/chrome/browser/android/process_utils.cc#newcode39 chrome/browser/android/process_utils.cc:39: DCHECK(session); Are we missing 'session->CloseIdleConnections()' here? I came across ...
8 years ago (2012-12-03 13:17:45 UTC) #17
digit1
https://chromiumcodereview.appspot.com/10816038/diff/11003/chrome/browser/android/process_utils.cc File chrome/browser/android/process_utils.cc (right): https://chromiumcodereview.appspot.com/10816038/diff/11003/chrome/browser/android/process_utils.cc#newcode39 chrome/browser/android/process_utils.cc:39: DCHECK(session); Yes, this looks suspicious. What happens if you ...
8 years ago (2012-12-03 13:42:02 UTC) #18
Philippe
8 years ago (2012-12-03 13:48:37 UTC) #19
Message was sent while issue was closed.
https://chromiumcodereview.appspot.com/10816038/diff/11003/chrome/browser/and...
File chrome/browser/android/process_utils.cc (right):

https://chromiumcodereview.appspot.com/10816038/diff/11003/chrome/browser/and...
chrome/browser/android/process_utils.cc:39: DCHECK(session);
On 2012/12/03 13:42:02, digit1 wrote:
> Yes, this looks suspicious. What happens if you add the missing call? I.e. do
> all our unit tests still pass? It might be worthwhile to try to add a
regression
> test if this doesn't turn out too long.

Yes, I'm building/testing this right now. FYI, we are supposed to close idle
connections after 5min of inactivity to avoid consuming too much battery when
the app is in the background. This is triggered by the onPause() override on the
application side.
This has basically been a no-op upstream. I will send a patch fixing this soon.

Powered by Google App Engine
This is Rietveld 408576698