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

Side by Side Diff: components/user_manager/remove_user_delegate.h

Issue 1470633002: ChromeOS: Fix removeUser button on signin screen. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@462823--Chrome-OS-handles-deletion-of-Gmail-account-poorly--Fix-GetKnownUserAccountId
Patch Set: Rebased. Created 5 years 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 COMPONENTS_USER_MANAGER_REMOVE_USER_DELEGATE_H_ 5 #ifndef COMPONENTS_USER_MANAGER_REMOVE_USER_DELEGATE_H_
6 #define COMPONENTS_USER_MANAGER_REMOVE_USER_DELEGATE_H_ 6 #define COMPONENTS_USER_MANAGER_REMOVE_USER_DELEGATE_H_
7 7
8 #include "components/user_manager/user_manager_export.h" 8 #include "components/user_manager/user_manager_export.h"
9 9
10 class AccountId;
11
10 namespace user_manager { 12 namespace user_manager {
11 13
12 // Delegate to be used with |UserManager::RemoveUser|. 14 // Delegate to be used with |UserManager::RemoveUser|.
13 class USER_MANAGER_EXPORT RemoveUserDelegate { 15 class USER_MANAGER_EXPORT RemoveUserDelegate {
14 public: 16 public:
15 // Called right before actual user removal process is initiated. 17 // Called right before actual user removal process is initiated.
16 virtual void OnBeforeUserRemoved(const std::string& username) = 0; 18 virtual void OnBeforeUserRemoved(const AccountId& account_id) = 0;
17 19
18 // Called right after user removal process has been initiated. 20 // Called right after user removal process has been initiated.
19 virtual void OnUserRemoved(const std::string& username) = 0; 21 virtual void OnUserRemoved(const AccountId& account_id) = 0;
20 }; 22 };
21 23
22 } // namespace user_manager 24 } // namespace user_manager
23 25
24 #endif // COMPONENTS_USER_MANAGER_REMOVE_USER_DELEGATE_H_ 26 #endif // COMPONENTS_USER_MANAGER_REMOVE_USER_DELEGATE_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc ('k') | components/user_manager/user_manager_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698