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

Side by Side Diff: chrome/browser/ui/webui/options/supervised_user_import_handler.h

Issue 403343002: Rename "managed (mode|user)" to "supervised user" (part 8) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 4 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 | Annotate | Revision Log
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 CHROME_BROWSER_UI_WEBUI_OPTIONS_SUPERVISED_USER_IMPORT_HANDLER_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_SUPERVISED_USER_IMPORT_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_SUPERVISED_USER_IMPORT_HANDLER_H_ 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_SUPERVISED_USER_IMPORT_HANDLER_H_
7 7
8 #include "base/callback_list.h" 8 #include "base/callback_list.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "base/scoped_observer.h" 10 #include "base/scoped_observer.h"
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 virtual void OnSupervisedUsersChanged() OVERRIDE; 45 virtual void OnSupervisedUsersChanged() OVERRIDE;
46 46
47 // SigninErrorController::Observer implementation. 47 // SigninErrorController::Observer implementation.
48 virtual void OnErrorChanged() OVERRIDE; 48 virtual void OnErrorChanged() OVERRIDE;
49 49
50 private: 50 private:
51 // Clears the cached list of supervised users and fetches the new list of 51 // Clears the cached list of supervised users and fetches the new list of
52 // supervised users. 52 // supervised users.
53 void FetchSupervisedUsers(); 53 void FetchSupervisedUsers();
54 54
55 // Callback for the "requestManagedUserImportUpdate" message. 55 // Callback for the "requestSupervisedUserImportUpdate" message.
56 // Checks the sign-in status of the custodian and accordingly 56 // Checks the sign-in status of the custodian and accordingly
57 // sends an update to the WebUI. The update can be to show/hide 57 // sends an update to the WebUI. The update can be to show/hide
58 // an error bubble and update/clear the supervised user list. 58 // an error bubble and update/clear the supervised user list.
59 void RequestSupervisedUserImportUpdate(const base::ListValue* args); 59 void RequestSupervisedUserImportUpdate(const base::ListValue* args);
60 60
61 // Sends an array of supervised users to WebUI. Each entry is of the form: 61 // Sends an array of supervised users to WebUI. Each entry is of the form:
62 // supervisedProfile = { 62 // supervisedProfile = {
63 // id: "Supervised User ID", 63 // id: "Supervised User ID",
64 // name: "Supervised User Name", 64 // name: "Supervised User Name",
65 // iconURL: "chrome://path/to/icon/image", 65 // iconURL: "chrome://path/to/icon/image",
(...skipping 21 matching lines...) Expand all
87 ScopedObserver<SigninErrorController, SupervisedUserImportHandler> observer_; 87 ScopedObserver<SigninErrorController, SupervisedUserImportHandler> observer_;
88 88
89 base::WeakPtrFactory<SupervisedUserImportHandler> weak_ptr_factory_; 89 base::WeakPtrFactory<SupervisedUserImportHandler> weak_ptr_factory_;
90 90
91 DISALLOW_COPY_AND_ASSIGN(SupervisedUserImportHandler); 91 DISALLOW_COPY_AND_ASSIGN(SupervisedUserImportHandler);
92 }; 92 };
93 93
94 } // namespace options 94 } // namespace options
95 95
96 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_SUPERVISED_USER_IMPORT_HANDLER_H_ 96 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_SUPERVISED_USER_IMPORT_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698