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

Issue 500117: Daemonize (fork()) and install metrics_daemon in the image for execution. (Closed)

Created:
11 years ago by semenzato
Modified:
9 years, 7 months ago
Reviewers:
Luigi Semenzato, tedbo
CC:
chromium-os-reviews_googlegroups.com
Visibility:
Public.

Description

Daemonize (fork()) and install metrics_daemon in the image for execution. With this change ChromeOS begins to send metrics to the UMA server.

Patch Set 1 #

Patch Set 2 : fix comment and parameter name #

Total comments: 8

Patch Set 3 : fixes following Ted's review #

Total comments: 2

Patch Set 4 : rename do_fork to run_as_daemon #

Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -12 lines) Patch
M src/package_repo/package-list-prod.txt View 1 chunk +1 line, -0 lines 0 comments Download
M src/platform/init/debian/rules View 1 chunk +1 line, -0 lines 0 comments Download
A src/platform/init/metrics_daemon.conf View 1 2 1 chunk +12 lines, -0 lines 0 comments Download
M src/platform/metrics_daemon/Makefile View 2 chunks +3 lines, -2 lines 0 comments Download
M src/platform/metrics_daemon/debian/changelog View 1 chunk +3 lines, -2 lines 0 comments Download
M src/platform/metrics_daemon/debian/control View 1 chunk +1 line, -1 line 0 comments Download
M src/platform/metrics_daemon/debian/rules View 1 chunk +1 line, -0 lines 0 comments Download
M src/platform/metrics_daemon/main.cc View 1 2 1 chunk +6 lines, -1 line 0 comments Download
A src/platform/metrics_daemon/make_pkg.sh View 0 chunks +-1 lines, --1 lines 0 comments Download
M src/platform/metrics_daemon/metrics_daemon.h View 1 2 3 1 chunk +3 lines, -3 lines 0 comments Download
M src/platform/metrics_daemon/metrics_daemon.cc View 1 2 3 2 chunks +5 lines, -2 lines 0 comments Download
M src/platform/metrics_daemon/metrics_daemon_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/scripts/build_platform_packages.sh View 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 4 (0 generated)
Luigi Semenzato
Ted, I would be very much obliged if you can review this. This change makes ...
11 years ago (2009-12-17 23:20:33 UTC) #1
tedbo
See comments below: http://codereview.chromium.org/500117/diff/28/1003 File src/platform/init/metrics_daemon.conf (right): http://codereview.chromium.org/500117/diff/28/1003#newcode8 src/platform/init/metrics_daemon.conf:8: start on started connman FYI- We ...
11 years ago (2009-12-17 23:42:43 UTC) #2
Luigi Semenzato
Thanks. http://codereview.chromium.org/500117/diff/28/1003 File src/platform/init/metrics_daemon.conf (right): http://codereview.chromium.org/500117/diff/28/1003#newcode8 src/platform/init/metrics_daemon.conf:8: start on started connman On 2009/12/17 23:42:43, tedbo ...
11 years ago (2009-12-18 00:55:30 UTC) #3
tedbo
11 years ago (2009-12-18 01:12:17 UTC) #4
LGTM

Since you changed the flag name (thanks!) I think it makes sense to change the
code. After that feel free to submit.

http://codereview.chromium.org/500117/diff/3001/4010
File src/platform/metrics_daemon/metrics_daemon.cc (right):

http://codereview.chromium.org/500117/diff/3001/4010#newcode33
src/platform/metrics_daemon/metrics_daemon.cc:33: void MetricsDaemon::Run(bool
do_fork, bool testing) {
s/do_fork/do_daemon

http://codereview.chromium.org/500117/diff/3001/4011
File src/platform/metrics_daemon/metrics_daemon.h (right):

http://codereview.chromium.org/500117/diff/3001/4011#newcode20
src/platform/metrics_daemon/metrics_daemon.h:20: // Does all the work.  If
do_fork is true, daemonize by forking.  If
Please update this comment and function prototype below to s/do_fork/do_daemon.

Powered by Google App Engine
This is Rietveld 408576698