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

Unified Diff: ash/wm/video_detector.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
« no previous file with comments | « ash/wm/video_detector.h ('k') | ash/wm/video_detector_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/video_detector.cc
diff --git a/ash/wm/video_detector.cc b/ash/wm/video_detector.cc
index 4811153d25416b20689bc88d7452efb4c7f06216..62c0417b104150aa91bb2b6ccf0391ec5e2b17a4 100644
--- a/ash/wm/video_detector.cc
+++ b/ash/wm/video_detector.cc
@@ -45,7 +45,7 @@ class VideoDetector::WindowInfo {
buffer_size_++;
return buffer_size_ == static_cast<size_t>(kMinFramesPerSecond) &&
- (now - update_times_[buffer_start_]).InSecondsF() <= 1.0;
+ (now - update_times_[buffer_start_]).InSecondsF() <= 1.0;
}
private:
@@ -63,8 +63,7 @@ class VideoDetector::WindowInfo {
};
VideoDetector::VideoDetector()
- : observer_manager_(this),
- is_shutting_down_(false) {
+ : observer_manager_(this), is_shutting_down_(false) {
aura::Env::GetInstance()->AddObserver(this);
WmShell::Get()->AddShellObserver(this);
}
@@ -116,7 +115,7 @@ void VideoDetector::MaybeNotifyObservers(aura::Window* window,
base::TimeTicks now) {
if (!last_observer_notification_time_.is_null() &&
(now - last_observer_notification_time_).InSecondsF() <
- kNotifyIntervalSec)
+ kNotifyIntervalSec)
return;
if (!window->IsVisible())
@@ -137,7 +136,8 @@ void VideoDetector::MaybeNotifyObservers(aura::Window* window,
Shell::GetContainersFromAllRootWindows(kShellWindowId_DefaultContainer,
NULL);
for (std::vector<aura::Window*>::const_iterator container =
- containers.begin(); container != containers.end(); ++container) {
+ containers.begin();
+ container != containers.end(); ++container) {
const aura::Window::Windows& windows = (*container)->children();
for (aura::Window::Windows::const_iterator window = windows.begin();
window != windows.end(); ++window) {
@@ -148,8 +148,7 @@ void VideoDetector::MaybeNotifyObservers(aura::Window* window,
}
}
- FOR_EACH_OBSERVER(VideoDetectorObserver,
- observers_,
+ FOR_EACH_OBSERVER(VideoDetectorObserver, observers_,
OnVideoDetected(fullscreen_window_exists));
last_observer_notification_time_ = now;
}
« no previous file with comments | « ash/wm/video_detector.h ('k') | ash/wm/video_detector_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698