Commit fecb467a authored by Dale Curtis's avatar Dale Curtis Committed by Commit Bot

Don't use IsOnBatteryPower as initial "has controls" value :|

Whoops. No test unfortunately since there's no good way to test
this other than hard coding the expected default values in the
test itself, which is generally not a good test.

BUG=779192
TEST=none
TBR=mlamouri

Change-Id: I00d26ef715fac4884017ce295639ee6aab37d777
Reviewed-on: https://chromium-review.googlesource.com/1138648Reviewed-by: default avatarDale Curtis <dalecurtis@chromium.org>
Commit-Queue: Dale Curtis <dalecurtis@chromium.org>
Cr-Commit-Position: refs/heads/master@{#575376}
parent 4f891da6
......@@ -509,7 +509,7 @@ WatchTimeReporter::CreateControlsComponent() {
FOREGROUND_KEY(NativeControlsOff)};
return std::make_unique<WatchTimeComponent<bool>>(
IsOnBatteryPower(), std::move(keys_to_finalize),
false, std::move(keys_to_finalize),
base::BindRepeating(&WatchTimeReporter::GetControlsKey,
base::Unretained(this)),
get_media_time_cb_, recorder_.get());
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment