OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 // Use the <code>chrome.usersPrivate</code> API to manage users. | |
6 namespace usersPrivate { | |
7 | |
8 interface Functions { | |
9 // Gets a list of the canonicalized emails of the currently whitelisted | |
10 // users. | |
11 static void getWhitelistedUsers(DOMString[] emails); | |
Dan Beam
2015/05/23 00:51:14
why not make this onWhiteListedUsersChanged and fi
Oren Blasberg
2015/05/26 17:04:07
Implementing that looks pretty challenging if we w
Dan Beam
2015/05/28 20:09:30
Yeah, this seems fine as long as you're cool with
Oren Blasberg
2015/05/29 23:48:07
Yep, I'm cool with that. In fact I'm currently add
| |
12 | |
13 // Adds a new user with the given email to the whitelist. | |
14 static void addWhitelistedUser(DOMString email); | |
15 | |
16 // Removes the user with the given email from the whitelist. | |
17 static void removeWhitelistedUser(DOMString email); | |
18 | |
19 // Whether the current user is the owner of the device. | |
20 static void isCurrentUserOwner(boolean isOwner); | |
21 | |
22 // Whether the whitelist is managed by enterprise. | |
23 static void isWhitelistManaged(boolean managed); | |
24 }; | |
25 }; | |
OLD | NEW |