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

Unified Diff: ash/wm/maximize_mode/maximize_mode_controller.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/wm/maximize_mode/maximize_mode_controller.cc
diff --git a/ash/wm/maximize_mode/maximize_mode_controller.cc b/ash/wm/maximize_mode/maximize_mode_controller.cc
index 5f4b32a429f9d460287b3e8a53f63b976c8c8667..9b9274902a56ed535237520c03e3a1549d5b9dd9 100644
--- a/ash/wm/maximize_mode/maximize_mode_controller.cc
+++ b/ash/wm/maximize_mode/maximize_mode_controller.cc
@@ -92,8 +92,8 @@ bool IsAngleBetweenAccelerometerReadingsStable(
update.get(chromeos::ACCELEROMETER_SOURCE_ATTACHED_KEYBOARD))
.Length() -
ui::ConvertAccelerometerReadingToVector3dF(
- update.get(chromeos::ACCELEROMETER_SOURCE_SCREEN)).Length()) <=
- kNoisyMagnitudeDeviation;
+ update.get(chromeos::ACCELEROMETER_SOURCE_SCREEN))
+ .Length()) <= kNoisyMagnitudeDeviation;
}
#endif // OS_CHROMEOS
@@ -120,8 +120,8 @@ MaximizeModeController::MaximizeModeController()
chromeos::AccelerometerReader::GetInstance()->AddObserver(this);
Shell::GetInstance()->window_tree_host_manager()->AddObserver(this);
}
- chromeos::DBusThreadManager::Get()->
- GetPowerManagerClient()->AddObserver(this);
+ chromeos::DBusThreadManager::Get()->GetPowerManagerClient()->AddObserver(
+ this);
#endif // OS_CHROMEOS
}
@@ -133,8 +133,8 @@ MaximizeModeController::~MaximizeModeController() {
chromeos::AccelerometerReader::GetInstance()->RemoveObserver(this);
Shell::GetInstance()->window_tree_host_manager()->RemoveObserver(this);
}
- chromeos::DBusThreadManager::Get()->
- GetPowerManagerClient()->RemoveObserver(this);
+ chromeos::DBusThreadManager::Get()->GetPowerManagerClient()->RemoveObserver(
+ this);
#endif // OS_CHROMEOS
}
@@ -407,15 +407,16 @@ void MaximizeModeController::OnAppTerminating() {
if (CanEnterMaximizeMode()) {
UMA_HISTOGRAM_CUSTOM_COUNTS("Ash.TouchView.TouchViewActiveTotal",
- total_touchview_time_.InMinutes(),
- 1, base::TimeDelta::FromDays(7).InMinutes(), 50);
+ total_touchview_time_.InMinutes(), 1,
+ base::TimeDelta::FromDays(7).InMinutes(), 50);
UMA_HISTOGRAM_CUSTOM_COUNTS("Ash.TouchView.TouchViewInactiveTotal",
- total_non_touchview_time_.InMinutes(),
- 1, base::TimeDelta::FromDays(7).InMinutes(), 50);
- base::TimeDelta total_runtime = total_touchview_time_ +
- total_non_touchview_time_;
+ total_non_touchview_time_.InMinutes(), 1,
+ base::TimeDelta::FromDays(7).InMinutes(), 50);
+ base::TimeDelta total_runtime =
+ total_touchview_time_ + total_non_touchview_time_;
if (total_runtime.InSeconds() > 0) {
- UMA_HISTOGRAM_PERCENTAGE("Ash.TouchView.TouchViewActivePercentage",
+ UMA_HISTOGRAM_PERCENTAGE(
+ "Ash.TouchView.TouchViewActivePercentage",
100 * total_touchview_time_.InSeconds() / total_runtime.InSeconds());
}
}
« no previous file with comments | « ash/wm/maximize_mode/accelerometer_test_data_literals.cc ('k') | ash/wm/maximize_mode/maximize_mode_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698