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

Issue 2456783002: Decouple PowerUsageMonitor{Impl} from //content/browser (Closed)

Created:
4 years, 1 month ago by ke.he
Modified:
4 years, 1 month ago
CC:
chromium-reviews, darin-cc_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Decouple PowerUsageMonitor{Impl} from //content/browser PowerUsageMonitor is currently only used by Chrome and has significant //content dependencies, to decouple it we just move it to //chrome/browser at the current time. The power_usage_monitor.h is deleted as there is no need to export the StartPowerUsageMonitor interface from chrome any more. We add the PowerUsageMonitor as a member into the ChromeBrowserMain. Unittest are also changed accordingly. BUG=647247 Committed: https://crrev.com/bf45805b20e15b30b0cecad0b9056136fb6d2849 Cr-Commit-Position: refs/heads/master@{#430233}

Patch Set 1 #

Patch Set 2 : Decouple PowerUsageMonitor{Impl} from //content/browser #

Patch Set 3 : fix chromeOS build failed #

Total comments: 4

Patch Set 4 : add power_usage_monitor as member of ChromBrowserMain #

Patch Set 5 : change define position of power_usage_moniter_ in ChromeBrowserMain #

Unified diffs Side-by-side diffs Delta from patch set Stats (+55 lines, -679 lines) Patch
M chrome/browser/BUILD.gn View 1 2 3 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/chrome_browser_main.h View 1 2 3 4 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/chrome_browser_main.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
A + chrome/browser/power_usage_monitor/power_usage_monitor.h View 1 2 3 6 chunks +9 lines, -13 lines 0 comments Download
A + chrome/browser/power_usage_monitor/power_usage_monitor.cc View 1 2 3 12 chunks +25 lines, -49 lines 0 comments Download
A + chrome/browser/power_usage_monitor/power_usage_monitor_unittest.cc View 1 2 3 6 chunks +8 lines, -12 lines 0 comments Download
M chrome/test/BUILD.gn View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download
M content/browser/BUILD.gn View 2 chunks +0 lines, -4 lines 0 comments Download
D content/browser/power_usage_monitor_impl.h View 1 chunk +0 lines, -133 lines 0 comments Download
D content/browser/power_usage_monitor_impl.cc View 1 chunk +0 lines, -278 lines 0 comments Download
D content/browser/power_usage_monitor_impl_unittest.cc View 1 chunk +0 lines, -169 lines 0 comments Download
D content/public/browser/power_usage_monitor.h View 1 chunk +0 lines, -17 lines 0 comments Download
M content/test/BUILD.gn View 1 2 2 chunks +0 lines, -2 lines 0 comments Download

Messages

Total messages: 43 (31 generated)
ke.he
Could you PTAL on this? Thanks!
4 years, 1 month ago (2016-10-27 06:43:49 UTC) #6
blundell
Looks good, thanks! In addition to the comments that I've left, it looks you have ...
4 years, 1 month ago (2016-10-27 21:21:55 UTC) #19
ke.he
https://codereview.chromium.org/2456783002/diff/40001/chrome/browser/BUILD.gn File chrome/browser/BUILD.gn (right): https://codereview.chromium.org/2456783002/diff/40001/chrome/browser/BUILD.gn#newcode2785 chrome/browser/BUILD.gn:2785: "power/process_power_collector.h", On 2016/10/27 21:21:55, blundell wrote: > nit: rename ...
4 years, 1 month ago (2016-10-28 09:39:20 UTC) #29
blundell
lgtm, thanks!
4 years, 1 month ago (2016-10-28 14:43:26 UTC) #32
blundell
+jam@ for OWNERS (whole CL, which is not that large)
4 years, 1 month ago (2016-10-28 14:44:08 UTC) #34
jam
What is the benefit of moving this from content to chrome?
4 years, 1 month ago (2016-10-31 16:51:07 UTC) #35
blundell
On 2016/10/31 16:51:07, jam wrote: > What is the benefit of moving this from content ...
4 years, 1 month ago (2016-10-31 17:00:40 UTC) #36
ke.he
blundell@, Thanks for the clarification. jam@, any comments on this? thanks:)
4 years, 1 month ago (2016-11-02 05:48:26 UTC) #37
jam
ok, if it's only used by chrome lgtm
4 years, 1 month ago (2016-11-04 17:25:50 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2456783002/80001
4 years, 1 month ago (2016-11-07 06:43:26 UTC) #40
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 1 month ago (2016-11-07 07:41:41 UTC) #41
commit-bot: I haz the power
4 years, 1 month ago (2016-11-07 07:43:38 UTC) #43
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/bf45805b20e15b30b0cecad0b9056136fb6d2849
Cr-Commit-Position: refs/heads/master@{#430233}

Powered by Google App Engine
This is Rietveld 408576698