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

Issue 644473004: Modifed the content api RenderProcessHostObserver::RenderProcessExited to remove the ununsed & inva… (Closed)

Created:
6 years, 2 months ago by sramajay
Modified:
6 years, 2 months ago
CC:
chromium-reviews, asanka, extensions-reviews_chromium.org, creis+watch_chromium.org, benjhayden+dwatch_chromium.org, nasko+codewatch_chromium.org, jam, darin-cc_chromium.org, chromium-apps-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Modifed the content api RenderProcessHostObserver::RenderProcessExited to remove the ununsed & invalid ProcessHandle parameter ProcessHandle(pid_t) will be 0 when RenderProcessExited observer API called. There is no use for this parameter to be present as the value is 0 and none of the callers is using this parameter. BUG= Committed: https://crrev.com/b419ca564edf8cb1030d1d4205792cf18338495b Cr-Commit-Position: refs/heads/master@{#299439}

Patch Set 1 #

Patch Set 2 : Fixed unittest errors in API changes #

Patch Set 3 : Rebased #

Patch Set 4 : Modified AUTHORS file #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -10 lines) Patch
M AUTHORS View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/android/content_view_statics.cc View 1 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/download/mhtml_generation_manager.cc View 2 chunks +0 lines, -2 lines 0 comments Download
M content/browser/renderer_host/render_process_host_browsertest.cc View 1 3 chunks +0 lines, -3 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M content/public/browser/render_process_host_observer.h View 1 chunk +0 lines, -1 line 0 comments Download
M content/public/test/browser_test_utils.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M content/public/test/browser_test_utils.cc View 1 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 24 (6 generated)
sramajay
PTAL
6 years, 2 months ago (2014-10-09 11:36:54 UTC) #2
Charlie Reis
Drive-by: Looks like you're missing updates to some test classes, like render_process_host_browsertest.cc and browser_test_utils.{h,cc}. If ...
6 years, 2 months ago (2014-10-09 16:42:01 UTC) #4
sramajay
I dont have try server access. It is giving exception. Have requested for access. Mean ...
6 years, 2 months ago (2014-10-10 07:55:58 UTC) #5
Charlie Reis
On 2014/10/10 07:55:58, sramajay wrote: > I dont have try server access. It is giving ...
6 years, 2 months ago (2014-10-10 16:56:37 UTC) #6
sramajay
I have Rebased and modified patch. PTAL.
6 years, 2 months ago (2014-10-13 10:40:01 UTC) #7
no sievers
lgtm
6 years, 2 months ago (2014-10-13 19:00:23 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/644473004/170001
6 years, 2 months ago (2014-10-14 05:19:29 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/17424)
6 years, 2 months ago (2014-10-14 05:27:04 UTC) #13
sramajay
Modified AUTHORS file to add my name and email.
6 years, 2 months ago (2014-10-14 05:30:10 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/644473004/230001
6 years, 2 months ago (2014-10-14 05:31:23 UTC) #16
commit-bot: I haz the power
Committed patchset #4 (id:230001)
6 years, 2 months ago (2014-10-14 06:54:38 UTC) #17
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/b419ca564edf8cb1030d1d4205792cf18338495b Cr-Commit-Position: refs/heads/master@{#299439}
6 years, 2 months ago (2014-10-14 06:55:59 UTC) #18
Charlie Reis
On 2014/10/14 05:30:10, sramajay wrote: > Modified AUTHORS file to add my name and email. ...
6 years, 2 months ago (2014-10-14 18:43:57 UTC) #19
sramajay
On 2014/10/14 18:43:57, Charlie Reis wrote: > On 2014/10/14 05:30:10, sramajay wrote: > > Modified ...
6 years, 2 months ago (2014-10-15 05:23:11 UTC) #20
Charlie Reis
On 2014/10/15 05:23:11, sramajay wrote: > On 2014/10/14 18:43:57, Charlie Reis wrote: > > On ...
6 years, 2 months ago (2014-10-16 00:00:00 UTC) #21
Chirantan Ekbote
I'm late to this but I'm writing an observer that does need to know the ...
6 years, 2 months ago (2014-10-16 18:47:19 UTC) #22
sramajay
On 2014/10/16 18:47:19, chirantan wrote: > I'm late to this but I'm writing an observer ...
6 years, 2 months ago (2014-10-17 05:12:19 UTC) #23
Chirantan Ekbote
6 years, 2 months ago (2014-10-17 17:57:14 UTC) #24
Message was sent while issue was closed.
On 2014/10/17 05:12:19, sramajay wrote:
> On 2014/10/16 18:47:19, chirantan wrote:
> > I'm late to this but I'm writing an observer that does need to know the
> process
> > handle.  My only option now is to listen for
> > NOTIFICATION_RENDERER_PROCESS_CLOSED, which I'd rather not do because I
> already
> > know which renderers I care about and I don't want to be spammed with
> > notifications about the others.
> > 
> > How about instead of removing the handle parameter we either:
> > 
> > 1) cache the handle in the function by calling GetHandle() before resetting
> the
> > ChildProcessLauncher and then pass it on the notifications OR
> > 2) reset the ChildProcessLauncher after sending out the notifications
> > 
> > What do you think?
> 
> I also had a similar requirement to know the process handle after it exited.
but
> found that process has been killed before the notification (if we implement
the
> above proposal, immediately after the notification).
> 
> Instead of using the process handle, i started using the RPH::GetID() with
which
> i am able to achieve the required behavior. Hope this helps.

That doesn't really work for me because I'm doing process management on linux so
I really do need the process handle.  I'll just upload a CL that does (2) so
host->GetHandle() will still be valid.

Powered by Google App Engine
This is Rietveld 408576698