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

Unified Diff: chrome/browser/chromeos/power/video_activity_notifier.cc

Issue 10928037: Revert 155224 - Add is_fullscreen to video updates (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/chromeos/power/video_activity_notifier.h ('k') | chromeos/chromeos.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
}
« no previous file with comments | « chrome/browser/chromeos/power/video_activity_notifier.h ('k') | chromeos/chromeos.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698