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

Unified Diff: ash/accelerators/exit_warning_handler.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/accelerators/exit_warning_handler.h ('k') | ash/accelerators/key_hold_detector.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/accelerators/exit_warning_handler.cc
diff --git a/ash/accelerators/exit_warning_handler.cc b/ash/accelerators/exit_warning_handler.cc
index fd3dee2d0ca5e7b8780c03ab23def3270b003569..82e6d0cbacaac189f57d4232b249caaa54aa1670 100644
--- a/ash/accelerators/exit_warning_handler.cc
+++ b/ash/accelerators/exit_warning_handler.cc
@@ -98,9 +98,7 @@ class ExitWarningWidgetDelegateView : public views::WidgetDelegateView {
} // namespace
ExitWarningHandler::ExitWarningHandler()
- : state_(IDLE),
- stub_timer_for_test_(false) {
-}
+ : state_(IDLE), stub_timer_for_test_(false) {}
ExitWarningHandler::~ExitWarningHandler() {
// Note: If a timer is outstanding, it is stopped in its destructor.
@@ -141,8 +139,7 @@ void ExitWarningHandler::StartTimer() {
if (stub_timer_for_test_)
return;
timer_.Start(FROM_HERE,
- base::TimeDelta::FromMilliseconds(kTimeOutMilliseconds),
- this,
+ base::TimeDelta::FromMilliseconds(kTimeOutMilliseconds), this,
&ExitWarningHandler::TimerAction);
}
@@ -158,8 +155,7 @@ void ExitWarningHandler::Show() {
gfx::Size rs = root_window->bounds().size();
gfx::Size ps = delegate->GetPreferredSize();
gfx::Rect bounds((rs.width() - ps.width()) / 2,
- (rs.height() - ps.height()) / 3,
- ps.width(), ps.height());
+ (rs.height() - ps.height()) / 3, ps.width(), ps.height());
views::Widget::InitParams params;
params.type = views::Widget::InitParams::TYPE_POPUP;
params.opacity = views::Widget::InitParams::TRANSLUCENT_WINDOW;
« no previous file with comments | « ash/accelerators/exit_warning_handler.h ('k') | ash/accelerators/key_hold_detector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698