Index: chrome/browser/chromeos/power/video_activity_notifier.cc |
=================================================================== |
--- chrome/browser/chromeos/power/video_activity_notifier.cc (revision 155231) |
+++ chrome/browser/chromeos/power/video_activity_notifier.cc (working copy) |
@@ -25,12 +25,13 @@ |
ash::Shell::GetInstance()->video_detector()->RemoveObserver(this); |
} |
-void VideoActivityNotifier::OnVideoDetected(bool is_fullscreen) { |
+void VideoActivityNotifier::OnVideoDetected() { |
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, is_fullscreen); |
+ DBusThreadManager::Get()->GetPowerManagerClient()->NotifyVideoActivity(now); |
last_notify_time_ = now; |
} |
} |