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

Side by Side Diff: chrome/browser/chromeos/login/users/affiliation.h

Issue 1266563002: Added affiliation IDs for the new affiliation determination. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/users/affiliation.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_USERS_AFFILIATION_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_USERS_AFFILIATION_H_
7
8 #include <set>
9 #include <string>
10
11 namespace chromeos {
12 // Returns true if there is at least one common element in two sets.
13 // Complexity: O(n + m), where n - size of the first set, m - size of
14 // the second set.
15 bool HaveCommonElement(const std::set<std::string>& set1,
Dmitry Polukhin 2015/07/30 15:14:11 I think it would be good to add typedef for std::s
peletskyi 2015/07/30 16:39:49 Done everywhere except this function. To HaveCommo
16 const std::set<std::string>& set2);
17
18 // TODO(b/515476): Remove email and enterprise domain after affiliation
19 // based implementation will fully work.
20 // The function makes a decision if user with |user_affiliation_ids| and
21 // |email| is affiliated on the device with |device_affiliation_ids| and
22 // |enterprise_domain|.
23 bool IsUserAffiliated(const std::set<std::string>& user_affiliation_ids,
24 const std::set<std::string>& device_affiliation_ids,
25 const std::string& email,
26 const std::string& enterprise_domain);
27
28 } // namespace chromeos
29
30 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USERS_AFFILIATION_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/users/affiliation.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698