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

Issue 1863002: Add basic daily active use logging. (Closed)

Created:
10 years, 7 months ago by petkov
Modified:
9 years, 7 months ago
Reviewers:
kmixter1, sosa
CC:
chromium-os-reviews_chromium.org, petkov, Luigi Semenzato, sosa
Base URL:
ssh://git@chromiumos-git/chromeos
Visibility:
Public.

Description

... will look into some unit and integration testing for all metrics code next in a separate CL.

Patch Set 1 #

Total comments: 9

Patch Set 2 : Address review comments and rename timeout to interval. #

Patch Set 3 : Add HANDLE_EINTR. #

Total comments: 4

Patch Set 4 : Address review comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+433 lines, -65 lines) Patch
M src/platform/metrics/Makefile View 2 chunks +1 line, -5 lines 0 comments Download
M src/platform/metrics/metrics_daemon.h View 1 3 chunks +129 lines, -16 lines 0 comments Download
M src/platform/metrics/metrics_daemon.cc View 1 2 3 7 chunks +268 lines, -32 lines 0 comments Download
M src/platform/metrics/power_states.h View 1 chunk +1 line, -12 lines 0 comments Download
src/platform/metrics/screensaver_states.h View 1 chunk +17 lines, -0 lines 0 comments Download
A src/platform/metrics/session_states.h View 1 chunk +17 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
petkov
10 years, 7 months ago (2010-05-03 19:02:45 UTC) #1
sosa
http://codereview.chromium.org/1863002/diff/1/3 File src/platform/metrics/metrics_daemon.cc (right): http://codereview.chromium.org/1863002/diff/1/3#newcode30 src/platform/metrics/metrics_daemon.cc:30: // The daily use monitor is schedule to a ...
10 years, 7 months ago (2010-05-03 20:19:06 UTC) #2
petkov
Thanks for the quick review. Comments addressed. http://codereview.chromium.org/1863002/diff/1/3 File src/platform/metrics/metrics_daemon.cc (right): http://codereview.chromium.org/1863002/diff/1/3#newcode30 src/platform/metrics/metrics_daemon.cc:30: // The ...
10 years, 7 months ago (2010-05-03 20:41:33 UTC) #3
sosa
lgtm http://codereview.chromium.org/1863002/diff/1/3 File src/platform/metrics/metrics_daemon.cc (right): http://codereview.chromium.org/1863002/diff/1/3#newcode389 src/platform/metrics/metrics_daemon.cc:389: usemon_source_ = g_timeout_source_new_seconds(timeout); No that's fine. On 2010/05/03 ...
10 years, 7 months ago (2010-05-03 20:54:18 UTC) #4
petkov
PTAL, added HANDLE_EINTR.
10 years, 7 months ago (2010-05-03 21:42:50 UTC) #5
sosa
lgtm 2x http://codereview.chromium.org/1863002/diff/6007/12002 File src/platform/metrics/metrics_daemon.cc (right): http://codereview.chromium.org/1863002/diff/6007/12002#newcode20 src/platform/metrics/metrics_daemon.cc:20: // Jacked from chrome base/eintr_wrapper.h. Maybe word ...
10 years, 7 months ago (2010-05-03 21:47:12 UTC) #6
petkov
10 years, 7 months ago (2010-05-03 23:08:54 UTC) #7
Thanks for the review. Pushing...

http://codereview.chromium.org/1863002/diff/6007/12002
File src/platform/metrics/metrics_daemon.cc (right):

http://codereview.chromium.org/1863002/diff/6007/12002#newcode20
src/platform/metrics/metrics_daemon.cc:20: // Jacked from chrome
base/eintr_wrapper.h.
On 2010/05/03 21:47:13, sosa wrote:
> Maybe word choice here? :D

Wording was copied from session_manager_service, actually :-)

I've replaced the macro with an include from base instead so, done.

http://codereview.chromium.org/1863002/diff/6007/12002#newcode317
src/platform/metrics/metrics_daemon.cc:317: O_RDWR | O_CREAT, S_IRUSR |
S_IWUSR));
On 2010/05/03 21:47:13, sosa wrote:
> line up arguments

Done.

Powered by Google App Engine
This is Rietveld 408576698