| Index: chrome/browser/chromeos/power/video_activity_notifier.cc
|
| diff --git a/chrome/browser/chromeos/power/video_activity_notifier.cc b/chrome/browser/chromeos/power/video_activity_notifier.cc
|
| index d0880628cc06ccb697f13d6948f6e4f53d8b1e5d..a92dcac2aa7ee4f070f90c123b0650a61b8848af 100644
|
| --- a/chrome/browser/chromeos/power/video_activity_notifier.cc
|
| +++ b/chrome/browser/chromeos/power/video_activity_notifier.cc
|
| @@ -25,13 +25,12 @@ VideoActivityNotifier::~VideoActivityNotifier() {
|
| ash::Shell::GetInstance()->video_detector()->RemoveObserver(this);
|
| }
|
|
|
| -void VideoActivityNotifier::OnVideoDetected() {
|
| +void VideoActivityNotifier::OnVideoDetected(bool is_fullscreen) {
|
| base::TimeTicks now = base::TimeTicks::Now();
|
| - // InSeconds() truncates rather than rounding, so it's fine for this
|
| - // comparison.
|
| if (last_notify_time_.is_null() ||
|
| (now - last_notify_time_).InSeconds() >= kNotifyIntervalSec) {
|
| - DBusThreadManager::Get()->GetPowerManagerClient()->NotifyVideoActivity(now);
|
| + DBusThreadManager::Get()->GetPowerManagerClient()->
|
| + NotifyVideoActivity(now, is_fullscreen);
|
| last_notify_time_ = now;
|
| }
|
| }
|
|
|