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

Issue 11103028: Logging: pass logging related cmd line options to utility process (Closed)

Created:
8 years, 2 months ago by qiankun
Modified:
8 years, 2 months ago
Reviewers:
jam, piman
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Logging: pass logging related cmd line options to utility process Logging doesn't work in utility process due to the related command line options are not passed to utility process. For example, run " ./chrome --vmodule=unpacker=1 --enable-logging=stderr", DVLOG(1) message in unpacker.cc can not be output correctly. This patch passes the related command line options to utility process. BUG= TEST=--enable-logging=stderr --vmodule=unpacker=1, then open chrome://extensions, drag a foo.crx in the page, you can see the DVLOG message " Installing extension ". Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=162665

Patch Set 1 #

Patch Set 2 : align function parameters #

Total comments: 2

Patch Set 3 : remove useless comments #

Patch Set 4 : move common switches propagation related to logging to BrowserChildProcessHostImpl::Launch() #

Total comments: 4

Patch Set 5 : merge code in common macros #

Total comments: 1

Patch Set 6 : remove extra empty line #

Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -10 lines) Patch
M AUTHORS View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/browser_child_process_host_impl.cc View 1 2 3 4 5 2 chunks +13 lines, -2 lines 0 comments Download
M content/browser/plugin_process_host.cc View 1 2 3 4 2 chunks +0 lines, -6 lines 0 comments Download
M content/browser/worker_host/worker_process_host.cc View 1 2 3 1 chunk +0 lines, -2 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
qiankun
please help to review, thanks!
8 years, 2 months ago (2012-10-11 08:34:40 UTC) #1
jam
1) you need to sign the CLA, see http://dev.chromium.org/developers/contributing-code/external-contributor-checklist for more informatoin 2) please don't ...
8 years, 2 months ago (2012-10-11 15:25:41 UTC) #2
jam
3) this should be done in a way that it works for all child processes, ...
8 years, 2 months ago (2012-10-11 15:27:58 UTC) #3
qiankun
On 2012/10/11 15:25:41, John Abd-El-Malek wrote: > 1) you need to sign the CLA, see ...
8 years, 2 months ago (2012-10-12 02:18:53 UTC) #4
qiankun
On 2012/10/11 15:27:58, John Abd-El-Malek wrote: > 3) this should be done in a way ...
8 years, 2 months ago (2012-10-12 02:34:08 UTC) #5
piman
http://codereview.chromium.org/11103028/diff/6001/content/browser/utility_process_host_impl.cc File content/browser/utility_process_host_impl.cc (right): http://codereview.chromium.org/11103028/diff/6001/content/browser/utility_process_host_impl.cc#newcode170 content/browser/utility_process_host_impl.cc:170: switches::kEnableLogging, // Support, e.g., --enable-logging=stderr nit: I don't think ...
8 years, 2 months ago (2012-10-12 17:00:33 UTC) #6
qiankun
On 2012/10/12 17:00:33, piman wrote: > http://codereview.chromium.org/11103028/diff/6001/content/browser/utility_process_host_impl.cc > File content/browser/utility_process_host_impl.cc (right): > > http://codereview.chromium.org/11103028/diff/6001/content/browser/utility_process_host_impl.cc#newcode170 > ...
8 years, 2 months ago (2012-10-12 21:49:55 UTC) #7
qiankun
Hi reviewers, updated comments and patch, please help to review.
8 years, 2 months ago (2012-10-16 00:35:08 UTC) #8
jam
On 2012/10/12 02:34:08, qiankun.miao wrote: > On 2012/10/11 15:27:58, John Abd-El-Malek wrote: > > 3) ...
8 years, 2 months ago (2012-10-16 14:56:34 UTC) #9
qiankun
On 2012/10/16 14:56:34, John Abd-El-Malek wrote: > On 2012/10/12 02:34:08, qiankun.miao wrote: > > On ...
8 years, 2 months ago (2012-10-16 15:26:15 UTC) #10
jam
On 2012/10/16 15:26:15, qiankun.miao wrote: > On 2012/10/16 14:56:34, John Abd-El-Malek wrote: > > On ...
8 years, 2 months ago (2012-10-16 21:17:55 UTC) #11
qiankun
patch updated. Please help to review, thanks.
8 years, 2 months ago (2012-10-17 05:47:09 UTC) #12
piman
http://codereview.chromium.org/11103028/diff/18001/content/browser/browser_child_process_host_impl.cc File content/browser/browser_child_process_host_impl.cc (right): http://codereview.chromium.org/11103028/diff/18001/content/browser/browser_child_process_host_impl.cc#newcode126 content/browser/browser_child_process_host_impl.cc:126: static const char* kForwardSwitches[] = { nit: can you ...
8 years, 2 months ago (2012-10-17 06:10:25 UTC) #13
qiankun
thanks, modified according your comments. http://codereview.chromium.org/11103028/diff/18001/content/browser/browser_child_process_host_impl.cc File content/browser/browser_child_process_host_impl.cc (right): http://codereview.chromium.org/11103028/diff/18001/content/browser/browser_child_process_host_impl.cc#newcode126 content/browser/browser_child_process_host_impl.cc:126: static const char* kForwardSwitches[] ...
8 years, 2 months ago (2012-10-17 09:47:36 UTC) #14
jam
lgtm https://codereview.chromium.org/11103028/diff/21002/content/browser/browser_child_process_host_impl.cc File content/browser/browser_child_process_host_impl.cc (right): https://codereview.chromium.org/11103028/diff/21002/content/browser/browser_child_process_host_impl.cc#newcode139 content/browser/browser_child_process_host_impl.cc:139: nit: extra line
8 years, 2 months ago (2012-10-17 15:19:41 UTC) #15
piman
LGTM with John's nit addressed.
8 years, 2 months ago (2012-10-17 16:02:38 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/qiankun.miao@intel.com/11103028/21002
8 years, 2 months ago (2012-10-18 01:09:36 UTC) #17
commit-bot: I haz the power
Failed to apply patch for AUTHORS: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
8 years, 2 months ago (2012-10-18 01:09:41 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/qiankun.miao@intel.com/11103028/28002
8 years, 2 months ago (2012-10-18 04:50:42 UTC) #19
commit-bot: I haz the power
8 years, 2 months ago (2012-10-18 07:11:17 UTC) #20
Change committed as 162665

Powered by Google App Engine
This is Rietveld 408576698