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

Issue 101963004: [chromeos] New PowerManagerClient observer to collect power data. (Closed)

Created:
7 years ago by Siva Chandra
Modified:
7 years ago
CC:
chromium-reviews, oshima+watch_chromium.org
Visibility:
Public.

Description

[chromeos] New PowerManagerClient observer to collect power data. The observer currently only collects power supply data. This CL should be treated as the first in a series to address the marked issue. BUG=312956 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=241445

Patch Set 1 #

Total comments: 3

Patch Set 2 : Address the various comments about location etc. #

Total comments: 20

Patch Set 3 : Address comments in patch set 2 #

Total comments: 20

Patch Set 4 : Address comments in patch set 3 #

Patch Set 5 : Fix a comment #

Patch Set 6 : Remove a now unused global constant #

Total comments: 36

Patch Set 7 : Fix another round of comments #

Total comments: 47

Patch Set 8 : Address nits #

Total comments: 8

Patch Set 9 : address stevenjb's nits #

Total comments: 9

Patch Set 10 : #

Total comments: 10

Patch Set 11 : Fit more misses #

Total comments: 2

Patch Set 12 : Last nit #

Patch Set 13 : Add CHROMEOS_EXPORT #

Patch Set 14 : Add log statements #

Patch Set 15 : #

Patch Set 16 : #

Patch Set 17 : rebase #

Patch Set 18 : Should work! #

Patch Set 19 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+212 lines, -0 lines) Patch
M chrome/browser/chromeos/chrome_browser_main_chromeos.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 3 chunks +7 lines, -0 lines 0 comments Download
M chromeos/chromeos.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +3 lines, -0 lines 0 comments Download
A chromeos/power/power_data_collector.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +72 lines, -0 lines 0 comments Download
A chromeos/power/power_data_collector.cc View 1 2 3 4 5 6 7 8 9 10 14 15 16 17 1 chunk +70 lines, -0 lines 0 comments Download
A chromeos/power/power_data_collector_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +60 lines, -0 lines 0 comments Download

Messages

Total messages: 35 (0 generated)
Siva Chandra
7 years ago (2013-12-04 00:11:02 UTC) #1
Daniel Erat
Just as an early, high-level comment, this code probably shouldn't live in chromeos/dbus/. That directory ...
7 years ago (2013-12-04 00:20:14 UTC) #2
stevenjb
On 2013/12/04 00:20:14, Daniel Erat wrote: > Just as an early, high-level comment, this code ...
7 years ago (2013-12-04 00:48:00 UTC) #3
stevenjb
https://codereview.chromium.org/101963004/diff/1/chromeos/dbus/power_data_collector.cc File chromeos/dbus/power_data_collector.cc (right): https://codereview.chromium.org/101963004/diff/1/chromeos/dbus/power_data_collector.cc#newcode12 chromeos/dbus/power_data_collector.cc:12: : pm_client_(pm_client) { This should just set pm_client_(DBusThreadManager::Get()->GetPowerManagerClient()) https://codereview.chromium.org/101963004/diff/1/chromeos/dbus/power_data_collector.cc#newcode14 ...
7 years ago (2013-12-04 00:51:47 UTC) #4
Sameer Nanda
On 2013/12/04 00:48:00, stevenjb wrote: > On 2013/12/04 00:20:14, Daniel Erat wrote: > > Just ...
7 years ago (2013-12-04 18:31:34 UTC) #5
Daniel Erat
On 2013/12/04 18:31:34, Sameer Nanda wrote: > On 2013/12/04 00:48:00, stevenjb wrote: > > On ...
7 years ago (2013-12-04 18:39:04 UTC) #6
Sameer Nanda
On 2013/12/04 18:39:04, Daniel Erat wrote: > On 2013/12/04 18:31:34, Sameer Nanda wrote: > > ...
7 years ago (2013-12-04 19:30:13 UTC) #7
stevenjb
On 2013/12/04 19:30:13, Sameer Nanda wrote: > On 2013/12/04 18:39:04, Daniel Erat wrote: > > ...
7 years ago (2013-12-04 19:35:33 UTC) #8
Daniel Erat
On 2013/12/04 19:35:33, stevenjb wrote: > On 2013/12/04 19:30:13, Sameer Nanda wrote: > > On ...
7 years ago (2013-12-04 19:37:25 UTC) #9
stevenjb
On 2013/12/04 19:35:33, stevenjb wrote: > On 2013/12/04 19:30:13, Sameer Nanda wrote: > > On ...
7 years ago (2013-12-04 19:41:44 UTC) #10
Siva Chandra
Please look at patch set 2. Gist of changes: 1. I have moved the files ...
7 years ago (2013-12-10 22:16:47 UTC) #11
Daniel Erat
just some high-level comments; haven't looked at much more than the header https://chromiumcodereview.appspot.com/101963004/diff/20001/chromeos/power/power_data_collector.cc File chromeos/power/power_data_collector.cc ...
7 years ago (2013-12-11 01:06:52 UTC) #12
Siva Chandra
PTaL https://chromiumcodereview.appspot.com/101963004/diff/20001/chromeos/power/power_data_collector.cc File chromeos/power/power_data_collector.cc (right): https://chromiumcodereview.appspot.com/101963004/diff/20001/chromeos/power/power_data_collector.cc#newcode45 chromeos/power/power_data_collector.cc:45: base::Time now = base::Time::NowFromSystemTime(); On 2013/12/11 01:06:52, Daniel ...
7 years ago (2013-12-11 20:32:02 UTC) #13
stevenjb
https://chromiumcodereview.appspot.com/101963004/diff/40001/chrome/browser/chromeos/chrome_browser_main_chromeos.cc File chrome/browser/chromeos/chrome_browser_main_chromeos.cc (right): https://chromiumcodereview.appspot.com/101963004/diff/40001/chrome/browser/chromeos/chrome_browser_main_chromeos.cc#newcode409 chrome/browser/chromeos/chrome_browser_main_chromeos.cc:409: PowerDataCollector::Initialize(); This should be initialized and shut down as ...
7 years ago (2013-12-11 20:54:36 UTC) #14
Daniel Erat
https://chromiumcodereview.appspot.com/101963004/diff/20001/chromeos/power/power_data_collector.h File chromeos/power/power_data_collector.h (right): https://chromiumcodereview.appspot.com/101963004/diff/20001/chromeos/power/power_data_collector.h#newcode34 chromeos/power/power_data_collector.h:34: int64 time; On 2013/12/11 20:32:02, Siva Chandra wrote: > ...
7 years ago (2013-12-11 20:59:19 UTC) #15
Siva Chandra
PTAL. Addressed all comments except one for which I have a question. https://chromiumcodereview.appspot.com/101963004/diff/40001/chrome/browser/chromeos/chrome_browser_main_chromeos.cc File chrome/browser/chromeos/chrome_browser_main_chromeos.cc ...
7 years ago (2013-12-11 21:30:55 UTC) #16
Daniel Erat
https://chromiumcodereview.appspot.com/101963004/diff/100001/chromeos/power/power_data_collector.cc File chromeos/power/power_data_collector.cc (right): https://chromiumcodereview.appspot.com/101963004/diff/100001/chromeos/power/power_data_collector.cc#newcode8 chromeos/power/power_data_collector.cc:8: #include "chromeos/power/power_data_collector.h" move this include to the top of ...
7 years ago (2013-12-11 22:26:46 UTC) #17
Siva Chandra
PTAL at patch set 7. https://chromiumcodereview.appspot.com/101963004/diff/100001/chromeos/power/power_data_collector.cc File chromeos/power/power_data_collector.cc (right): https://chromiumcodereview.appspot.com/101963004/diff/100001/chromeos/power/power_data_collector.cc#newcode8 chromeos/power/power_data_collector.cc:8: #include "chromeos/power/power_data_collector.h" On 2013/12/11 ...
7 years ago (2013-12-12 00:35:58 UTC) #18
Daniel Erat
this generally looks okay to me now; just small comments this time https://chromiumcodereview.appspot.com/101963004/diff/120001/chrome/browser/chromeos/chrome_browser_main_chromeos.cc File chrome/browser/chromeos/chrome_browser_main_chromeos.cc ...
7 years ago (2013-12-12 01:31:52 UTC) #19
Siva Chandra
Addressed all nits. PTAL at patch set 8. https://chromiumcodereview.appspot.com/101963004/diff/120001/chromeos/power/power_data_collector.cc File chromeos/power/power_data_collector.cc (right): https://chromiumcodereview.appspot.com/101963004/diff/120001/chromeos/power/power_data_collector.cc#newcode16 chromeos/power/power_data_collector.cc:16: On ...
7 years ago (2013-12-13 22:10:38 UTC) #20
stevenjb
https://chromiumcodereview.appspot.com/101963004/diff/40001/chrome/browser/chromeos/chrome_browser_main_chromeos.cc File chrome/browser/chromeos/chrome_browser_main_chromeos.cc (right): https://chromiumcodereview.appspot.com/101963004/diff/40001/chrome/browser/chromeos/chrome_browser_main_chromeos.cc#newcode409 chrome/browser/chromeos/chrome_browser_main_chromeos.cc:409: PowerDataCollector::Initialize(); On 2013/12/11 21:30:56, Siva Chandra wrote: > On ...
7 years ago (2013-12-13 22:28:44 UTC) #21
Siva Chandra
PTAL at patch set 9. https://chromiumcodereview.appspot.com/101963004/diff/40001/chrome/browser/chromeos/chrome_browser_main_chromeos.cc File chrome/browser/chromeos/chrome_browser_main_chromeos.cc (right): https://chromiumcodereview.appspot.com/101963004/diff/40001/chrome/browser/chromeos/chrome_browser_main_chromeos.cc#newcode409 chrome/browser/chromeos/chrome_browser_main_chromeos.cc:409: PowerDataCollector::Initialize(); On 2013/12/13 22:28:45, ...
7 years ago (2013-12-13 23:22:38 UTC) #22
stevenjb
LGTM
7 years ago (2013-12-13 23:43:02 UTC) #23
Daniel Erat
https://chromiumcodereview.appspot.com/101963004/diff/120001/chromeos/power/power_data_collector.cc File chromeos/power/power_data_collector.cc (right): https://chromiumcodereview.appspot.com/101963004/diff/120001/chromeos/power/power_data_collector.cc#newcode32 chromeos/power/power_data_collector.cc:32: snapshot.time = base::TimeTicks::Now(); On 2013/12/13 22:10:39, Siva Chandra wrote: ...
7 years ago (2013-12-13 23:57:09 UTC) #24
Siva Chandra
PTAL https://chromiumcodereview.appspot.com/101963004/diff/150001/chromeos/power/power_data_collector.cc File chromeos/power/power_data_collector.cc (right): https://chromiumcodereview.appspot.com/101963004/diff/150001/chromeos/power/power_data_collector.cc#newcode20 chromeos/power/power_data_collector.cc:20: PowerDataCollector::PowerDataCollector() { On 2013/12/13 23:57:09, Daniel Erat wrote: ...
7 years ago (2013-12-14 00:35:50 UTC) #25
Daniel Erat
https://chromiumcodereview.appspot.com/101963004/diff/150001/chromeos/power/power_data_collector.h File chromeos/power/power_data_collector.h (right): https://chromiumcodereview.appspot.com/101963004/diff/150001/chromeos/power/power_data_collector.h#newcode65 chromeos/power/power_data_collector.h:65: virtual void PowerChanged( On 2013/12/14 00:35:50, Siva Chandra wrote: ...
7 years ago (2013-12-14 01:00:29 UTC) #26
Daniel Erat
7 years ago (2013-12-14 01:00:32 UTC) #27
Siva Chandra
Hope I addressed all this time. PTAL. https://chromiumcodereview.appspot.com/101963004/diff/170001/chromeos/power/power_data_collector_unittest.cc File chromeos/power/power_data_collector_unittest.cc (right): https://chromiumcodereview.appspot.com/101963004/diff/170001/chromeos/power/power_data_collector_unittest.cc#newcode31 chromeos/power/power_data_collector_unittest.cc:31: PowerDataCollector *power_data_collector_; ...
7 years ago (2013-12-14 01:28:12 UTC) #28
Daniel Erat
lgtm https://chromiumcodereview.appspot.com/101963004/diff/190001/chromeos/power/power_data_collector.h File chromeos/power/power_data_collector.h (right): https://chromiumcodereview.appspot.com/101963004/diff/190001/chromeos/power/power_data_collector.h#newcode12 chromeos/power/power_data_collector.h:12: #include "base/gtest_prod_util.h" nit: i think you don't need ...
7 years ago (2013-12-14 14:29:10 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sivachandra@chromium.org/101963004/210001
7 years ago (2013-12-16 20:55:15 UTC) #30
Siva Chandra
Checked the commit box after fixing the nit. https://chromiumcodereview.appspot.com/101963004/diff/190001/chromeos/power/power_data_collector.h File chromeos/power/power_data_collector.h (right): https://chromiumcodereview.appspot.com/101963004/diff/190001/chromeos/power/power_data_collector.h#newcode12 chromeos/power/power_data_collector.h:12: #include ...
7 years ago (2013-12-16 21:29:29 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sivachandra@chromium.org/101963004/230001
7 years ago (2013-12-16 22:18:45 UTC) #32
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=205272
7 years ago (2013-12-16 23:34:30 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sivachandra@chromium.org/101963004/350001
7 years ago (2013-12-17 23:26:21 UTC) #34
commit-bot: I haz the power
7 years ago (2013-12-18 02:06:07 UTC) #35
Message was sent while issue was closed.
Change committed as 241445

Powered by Google App Engine
This is Rietveld 408576698