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

Unified Diff: ash/system/chromeos/power/video_activity_notifier.cc

Issue 2095193002: clang-format all of //ash (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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
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;
}
}
« no previous file with comments | « ash/system/chromeos/power/power_event_observer.cc ('k') | ash/system/chromeos/rotation/tray_rotation_lock.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698