Commit 452d1601 authored by Abhishek Bhardwaj's avatar Abhishek Bhardwaj Committed by Commit Bot

arc: Clang format power bridge

This change Clang formats ARC's power bridge.

Bug: None
Test: Compile.
Change-Id: I9658ce6c8405b3ec1b21986c162aa836fc09b774
Reviewed-on: https://chromium-review.googlesource.com/1239694Reviewed-by: default avatarDan Erat <derat@chromium.org>
Reviewed-by: default avatarLuis Hector Chavez <lhchavez@chromium.org>
Commit-Queue: Abhishek Bhardwaj <abhishekbh@chromium.org>
Cr-Commit-Position: refs/heads/master@{#593667}
parent e10f8efa
...@@ -125,8 +125,7 @@ ArcPowerBridge* ArcPowerBridge::GetForBrowserContext( ...@@ -125,8 +125,7 @@ ArcPowerBridge* ArcPowerBridge::GetForBrowserContext(
ArcPowerBridge::ArcPowerBridge(content::BrowserContext* context, ArcPowerBridge::ArcPowerBridge(content::BrowserContext* context,
ArcBridgeService* bridge_service) ArcBridgeService* bridge_service)
: arc_bridge_service_(bridge_service), : arc_bridge_service_(bridge_service), weak_ptr_factory_(this) {
weak_ptr_factory_(this) {
arc_bridge_service_->power()->SetHost(this); arc_bridge_service_->power()->SetHost(this);
arc_bridge_service_->power()->AddObserver(this); arc_bridge_service_->power()->AddObserver(this);
} }
...@@ -152,8 +151,8 @@ void ArcPowerBridge::OnConnectionReady() { ...@@ -152,8 +151,8 @@ void ArcPowerBridge::OnConnectionReady() {
// TODO(mash): Support this functionality without ash::Shell access in Chrome. // TODO(mash): Support this functionality without ash::Shell access in Chrome.
if (ash::Shell::HasInstance()) if (ash::Shell::HasInstance())
ash::Shell::Get()->display_configurator()->AddObserver(this); ash::Shell::Get()->display_configurator()->AddObserver(this);
chromeos::DBusThreadManager::Get()->GetPowerManagerClient()-> chromeos::DBusThreadManager::Get()->GetPowerManagerClient()->AddObserver(
AddObserver(this); this);
chromeos::DBusThreadManager::Get() chromeos::DBusThreadManager::Get()
->GetPowerManagerClient() ->GetPowerManagerClient()
->GetScreenBrightnessPercent( ->GetScreenBrightnessPercent(
...@@ -165,8 +164,8 @@ void ArcPowerBridge::OnConnectionClosed() { ...@@ -165,8 +164,8 @@ void ArcPowerBridge::OnConnectionClosed() {
// TODO(mash): Support this functionality without ash::Shell access in Chrome. // TODO(mash): Support this functionality without ash::Shell access in Chrome.
if (ash::Shell::HasInstance()) if (ash::Shell::HasInstance())
ash::Shell::Get()->display_configurator()->RemoveObserver(this); ash::Shell::Get()->display_configurator()->RemoveObserver(this);
chromeos::DBusThreadManager::Get()->GetPowerManagerClient()-> chromeos::DBusThreadManager::Get()->GetPowerManagerClient()->RemoveObserver(
RemoveObserver(this); this);
wake_lock_requestors_.clear(); wake_lock_requestors_.clear();
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment