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

Unified Diff: ash/system/chromeos/power/power_event_observer.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/system/chromeos/network/vpn_delegate.cc ('k') | ash/system/chromeos/power/video_activity_notifier.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/chromeos/power/power_event_observer.cc
diff --git a/ash/system/chromeos/power/power_event_observer.cc b/ash/system/chromeos/power/power_event_observer.cc
index 20a21d8077a292f303b1d9c8337fe4d717339d18..84e27e49032e9ea5924721af78d24681a4357587 100644
--- a/ash/system/chromeos/power/power_event_observer.cc
+++ b/ash/system/chromeos/power/power_event_observer.cc
@@ -46,17 +46,17 @@ void OnSuspendDisplaysCompleted(const base::Closure& suspend_callback,
PowerEventObserver::PowerEventObserver()
: screen_locked_(false), waiting_for_lock_screen_animations_(false) {
- chromeos::DBusThreadManager::Get()->GetPowerManagerClient()->
- AddObserver(this);
- chromeos::DBusThreadManager::Get()->GetSessionManagerClient()->
- AddObserver(this);
+ chromeos::DBusThreadManager::Get()->GetPowerManagerClient()->AddObserver(
+ this);
+ chromeos::DBusThreadManager::Get()->GetSessionManagerClient()->AddObserver(
+ this);
}
PowerEventObserver::~PowerEventObserver() {
- chromeos::DBusThreadManager::Get()->GetPowerManagerClient()->
- RemoveObserver(this);
- chromeos::DBusThreadManager::Get()->GetSessionManagerClient()->
- RemoveObserver(this);
+ chromeos::DBusThreadManager::Get()->GetPowerManagerClient()->RemoveObserver(
+ this);
+ chromeos::DBusThreadManager::Get()->GetSessionManagerClient()->RemoveObserver(
+ this);
}
void PowerEventObserver::OnLockAnimationsComplete() {
@@ -95,11 +95,13 @@ void PowerEventObserver::SuspendImminent() {
// is unblocked from OnLockAnimationsComplete().
if (!screen_locked_ && delegate->ShouldLockScreenBeforeSuspending() &&
delegate->CanLockScreen()) {
- screen_lock_callback_ = chromeos::DBusThreadManager::Get()->
- GetPowerManagerClient()->GetSuspendReadinessCallback();
+ screen_lock_callback_ = chromeos::DBusThreadManager::Get()
+ ->GetPowerManagerClient()
+ ->GetSuspendReadinessCallback();
VLOG(1) << "Requesting screen lock from PowerEventObserver";
- chromeos::DBusThreadManager::Get()->GetSessionManagerClient()->
- RequestLockScreen();
+ chromeos::DBusThreadManager::Get()
+ ->GetSessionManagerClient()
+ ->RequestLockScreen();
} else if (waiting_for_lock_screen_animations_) {
// The lock-before-suspending pref has been set and the lock screen is ready
// but the animations have not completed yet. This can happen if a suspend
« no previous file with comments | « ash/system/chromeos/network/vpn_delegate.cc ('k') | ash/system/chromeos/power/video_activity_notifier.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698