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

Issue 2297193007: mash: Provide a fake chromeos StatisticsProvider in ash (Closed)

Created:
4 years, 3 months ago by James Cook
Modified:
4 years, 3 months ago
Reviewers:
Daniel Erat
CC:
chromium-reviews, kalyank, sadrul, oshima+watch_chromium.org, kylechar
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

mash: Provide a fake chromeos StatisticsProvider in ash Lower-level code in //chromeos (like the power manager client) assumes it can use chromeos::system::StatisticsProvider to determine if it is running in a VM (among other things). This is causing CHECK failures on mash when powerd isn't running. For now, provide a fake implementation, since we don't want to create a StatisticsProviderImpl in both chrome and ash, as it runs an external binary to get its information, and we don't want to do that twice. BUG=643289 TEST=manual, stop powerd, start chrome on device with --mash, no CHECK failure Committed: https://crrev.com/fb20f602654bb390e495835aa5087f98d88143a5 Cr-Commit-Position: refs/heads/master@{#416088}

Patch Set 1 #

Patch Set 2 : . #

Total comments: 2

Patch Set 3 : build file #

Unified diffs Side-by-side diffs Delta from patch set Stats (+35 lines, -7 lines) Patch
M ash/mus/window_manager_application.h View 2 chunks +11 lines, -0 lines 0 comments Download
M ash/mus/window_manager_application.cc View 4 chunks +15 lines, -1 line 0 comments Download
M chromeos/BUILD.gn View 1 chunk +0 lines, -2 lines 0 comments Download
M chromeos/chromeos.gyp View 1 2 2 chunks +5 lines, -2 lines 0 comments Download
M chromeos/system/fake_statistics_provider.h View 2 chunks +4 lines, -2 lines 0 comments Download

Messages

Total messages: 12 (6 generated)
James Cook
derat, please take a look kylechar, just FYI
4 years, 3 months ago (2016-09-01 20:52:14 UTC) #2
Daniel Erat
lgtm https://codereview.chromium.org/2297193007/diff/20001/chromeos/chromeos.gyp File chromeos/chromeos.gyp (right): https://codereview.chromium.org/2297193007/diff/20001/chromeos/chromeos.gyp#newcode366 chromeos/chromeos.gyp:366: # Used when running mash, both on Linux ...
4 years, 3 months ago (2016-09-01 21:07:10 UTC) #5
James Cook
Thanks for the quick review. https://codereview.chromium.org/2297193007/diff/20001/chromeos/chromeos.gyp File chromeos/chromeos.gyp (right): https://codereview.chromium.org/2297193007/diff/20001/chromeos/chromeos.gyp#newcode366 chromeos/chromeos.gyp:366: # Used when running ...
4 years, 3 months ago (2016-09-01 21:21:41 UTC) #6
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/2297193007/40001
4 years, 3 months ago (2016-09-01 21:22:18 UTC) #9
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 3 months ago (2016-09-01 22:34:37 UTC) #10
commit-bot: I haz the power
4 years, 3 months ago (2016-09-01 22:36:10 UTC) #12
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/fb20f602654bb390e495835aa5087f98d88143a5
Cr-Commit-Position: refs/heads/master@{#416088}

Powered by Google App Engine
This is Rietveld 408576698