| Index: ash/system/chromeos/power/video_activity_notifier.cc
|
| diff --git a/ash/system/chromeos/power/video_activity_notifier.cc b/ash/system/chromeos/power/video_activity_notifier.cc
|
| index 3e09516849108d2d21695e102ab49c81882040af..d16004f4b71e375aa3628879b02dcb594e60a1a8 100644
|
| --- a/ash/system/chromeos/power/video_activity_notifier.cc
|
| +++ b/ash/system/chromeos/power/video_activity_notifier.cc
|
| @@ -17,8 +17,7 @@ const int kNotifyIntervalSec = 5;
|
| } // namespace
|
|
|
| VideoActivityNotifier::VideoActivityNotifier(VideoDetector* detector)
|
| - : detector_(detector),
|
| - screen_is_locked_(false) {
|
| + : detector_(detector), screen_is_locked_(false) {
|
| detector_->AddObserver(this);
|
| ash::WmShell::Get()->AddShellObserver(this);
|
| }
|
| @@ -35,8 +34,9 @@ void VideoActivityNotifier::OnVideoDetected(bool is_fullscreen) {
|
| base::TimeTicks now = base::TimeTicks::Now();
|
| if (last_notify_time_.is_null() ||
|
| (now - last_notify_time_).InSeconds() >= kNotifyIntervalSec) {
|
| - chromeos::DBusThreadManager::Get()->GetPowerManagerClient()->
|
| - NotifyVideoActivity(is_fullscreen);
|
| + chromeos::DBusThreadManager::Get()
|
| + ->GetPowerManagerClient()
|
| + ->NotifyVideoActivity(is_fullscreen);
|
| last_notify_time_ = now;
|
| }
|
| }
|
|
|