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

Side by Side Diff: ash/system/chromeos/multi_user/user_switch_util.h

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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef ASH_SYSTEM_CHROMEOS_MULTI_USER_MULTI_USER_SWITCH_UTIL_H_ 5 #ifndef ASH_SYSTEM_CHROMEOS_MULTI_USER_MULTI_USER_SWITCH_UTIL_H_
6 #define ASH_SYSTEM_CHROMEOS_MULTI_USER_MULTI_USER_SWITCH_UTIL_H_ 6 #define ASH_SYSTEM_CHROMEOS_MULTI_USER_MULTI_USER_SWITCH_UTIL_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "base/callback.h" 9 #include "base/callback.h"
10 10
11 namespace ash { 11 namespace ash {
12 12
13 // Tries to switch to a new user by first checking if desktop casting / sharing 13 // Tries to switch to a new user by first checking if desktop casting / sharing
14 // is going on, and let the user decide if he wants to terminate it or not. 14 // is going on, and let the user decide if he wants to terminate it or not.
15 // After terminating any desktop sharing operations, the |switch_user| function 15 // After terminating any desktop sharing operations, the |switch_user| function
16 // will be called. 16 // will be called.
17 void ASH_EXPORT TrySwitchingActiveUser( 17 void ASH_EXPORT
18 const base::Callback<void()> switch_user); 18 TrySwitchingActiveUser(const base::Callback<void()> switch_user);
19 19
20 // Terminates the "DesktopCastingWarning" dialog from a unit tests and |accept|s 20 // Terminates the "DesktopCastingWarning" dialog from a unit tests and |accept|s
21 // it. False will be returned if there was no dialog shown. 21 // it. False will be returned if there was no dialog shown.
22 bool ASH_EXPORT TestAndTerminateDesktopCastingWarningForTest(bool accept); 22 bool ASH_EXPORT TestAndTerminateDesktopCastingWarningForTest(bool accept);
23 23
24 } // namespace chromeos 24 } // namespace chromeos
25 25
26 #endif // ASH_SYSTEM_CHROMEOS_MULTI_USER_MULTI_USER_SWITCH_UTIL_H_ 26 #endif // ASH_SYSTEM_CHROMEOS_MULTI_USER_MULTI_USER_SWITCH_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698