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

Unified Diff: ash/system/chromeos/multi_user/user_switch_util.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/system/chromeos/multi_user/user_switch_util.cc
diff --git a/ash/system/chromeos/multi_user/user_switch_util.cc b/ash/system/chromeos/multi_user/user_switch_util.cc
index a5fb6e2f76661df60e4abfb11b8e6c8f72f983d0..0762d28cfef885bfafe4ecec079443fde16e7cc8 100644
--- a/ash/system/chromeos/multi_user/user_switch_util.cc
+++ b/ash/system/chromeos/multi_user/user_switch_util.cc
@@ -101,11 +101,11 @@ bool DesktopCastingWarningView::Accept() {
}
base::string16 DesktopCastingWarningView::GetDialogButtonLabel(
- ui::DialogButton button) const {
+ ui::DialogButton button) const {
return l10n_util::GetStringUTF16(
- button == ui::DIALOG_BUTTON_OK ?
- IDS_DESKTOP_CASTING_ACTIVE_BUTTON_SWITCH_USER :
- IDS_DESKTOP_CASTING_ACTIVE_BUTTON_ABORT_USER_SWITCH);
+ button == ui::DIALOG_BUTTON_OK
+ ? IDS_DESKTOP_CASTING_ACTIVE_BUTTON_SWITCH_USER
+ : IDS_DESKTOP_CASTING_ACTIVE_BUTTON_ABORT_USER_SWITCH);
}
bool DesktopCastingWarningView::IsDialogButtonEnabled(
@@ -167,8 +167,7 @@ void DesktopCastingWarningView::InitDialog() {
////////////////////////////////////////////////////////////////////////////////
// Factory function.
-void TrySwitchingActiveUser(
- const base::Callback<void()> on_switch) {
+void TrySwitchingActiveUser(const base::Callback<void()> on_switch) {
// Some unit tests do not have a shell. In that case simply execute.
if (!ash::Shell::HasInstance()) {
on_switch.Run();
« no previous file with comments | « ash/system/chromeos/multi_user/user_switch_util.h ('k') | ash/system/chromeos/multi_user/user_switch_util_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698