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

Unified Diff: ash/common/system/chromeos/power/power_status_view.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/common/system/chromeos/power/power_status_view.cc
diff --git a/ash/common/system/chromeos/power/power_status_view.cc b/ash/common/system/chromeos/power/power_status_view.cc
index 17ee1df07440b4bbcb4085b04563ab4a33ce5636..bcc80914a95f8d59b5cd5a82be5f37de7f4e7169 100644
--- a/ash/common/system/chromeos/power/power_status_view.cc
+++ b/ash/common/system/chromeos/power/power_status_view.cc
@@ -75,9 +75,8 @@ void PowerStatusView::LayoutView() {
AddChildView(icon_);
} else {
// PowerStatusView is left aligned on the system tray pop up item.
- views::BoxLayout* layout =
- new views::BoxLayout(views::BoxLayout::kHorizontal, 0, 0,
- kTrayPopupPaddingBetweenItems);
+ views::BoxLayout* layout = new views::BoxLayout(
+ views::BoxLayout::kHorizontal, 0, 0, kTrayPopupPaddingBetweenItems);
SetLayoutManager(layout);
icon_ = new ash::FixedSizedImageView(0, ash::kTrayPopupItemHeight);
@@ -108,8 +107,9 @@ void PowerStatusView::UpdateText() {
battery_time_status =
l10n_util::GetStringUTF16(IDS_ASH_STATUS_TRAY_BATTERY_CALCULATING);
} else {
- base::TimeDelta time = status.IsBatteryCharging() ?
- status.GetBatteryTimeToFull() : status.GetBatteryTimeToEmpty();
+ base::TimeDelta time = status.IsBatteryCharging()
+ ? status.GetBatteryTimeToFull()
+ : status.GetBatteryTimeToEmpty();
if (PowerStatus::ShouldDisplayBatteryTime(time) &&
!status.IsBatteryDischargingOnLinePower()) {
battery_time_status = l10n_util::GetStringFUTF16(

Powered by Google App Engine
This is Rietveld 408576698