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

Side by Side Diff: chrome/browser/chromeos/login/multi_profile_user_controller.h

Issue 117263002: Prevent ONC-pushed certificates from being used with multiprofiles. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressed comments, more tests Created 7 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_CHROMEOS_LOGIN_MULTI_PROFILE_USER_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_MULTI_PROFILE_USER_CONTROLLER_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_MULTI_PROFILE_USER_CONTROLLER_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_MULTI_PROFILE_USER_CONTROLLER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 25 matching lines...) Expand all
36 36
37 static void RegisterPrefs(PrefRegistrySimple* registry); 37 static void RegisterPrefs(PrefRegistrySimple* registry);
38 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); 38 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry);
39 39
40 // Returns true if the user is allowed to be in the current session. 40 // Returns true if the user is allowed to be in the current session.
41 bool IsUserAllowedInSession(const std::string& user_email) const; 41 bool IsUserAllowedInSession(const std::string& user_email) const;
42 42
43 // Starts to observe the multiprofile user behavior pref of the given profile. 43 // Starts to observe the multiprofile user behavior pref of the given profile.
44 void StartObserving(Profile* user_profile); 44 void StartObserving(Profile* user_profile);
45 45
46 // Removes the cached value for the given user. 46 // Removes the cached value for the given user.
pneubeck (no reviews) 2013/12/18 09:11:07 nit: s/value/values/ and the other comments in th
Joao da Silva 2013/12/18 09:40:13 Done.
47 void RemoveCachedValue(const std::string& user_email); 47 void RemoveCachedValues(const std::string& user_email);
48 48
49 // Possible behavior values. 49 // Possible behavior values.
50 static const char kBehaviorUnrestricted[]; 50 static const char kBehaviorUnrestricted[];
51 static const char kBehaviorPrimaryOnly[]; 51 static const char kBehaviorPrimaryOnly[];
52 static const char kBehaviorNotAllowed[]; 52 static const char kBehaviorNotAllowed[];
53 53
54 private: 54 private:
55 friend class MultiProfileUserControllerTest; 55 friend class MultiProfileUserControllerTest;
56 56
57 // Gets/sets the cached policy value. 57 // Gets/sets the cached policy value.
(...skipping 10 matching lines...) Expand all
68 MultiProfileUserControllerDelegate* delegate_; // Not owned. 68 MultiProfileUserControllerDelegate* delegate_; // Not owned.
69 PrefService* local_state_; // Not owned. 69 PrefService* local_state_; // Not owned.
70 ScopedVector<PrefChangeRegistrar> pref_watchers_; 70 ScopedVector<PrefChangeRegistrar> pref_watchers_;
71 71
72 DISALLOW_COPY_AND_ASSIGN(MultiProfileUserController); 72 DISALLOW_COPY_AND_ASSIGN(MultiProfileUserController);
73 }; 73 };
74 74
75 } // namespace chromeos 75 } // namespace chromeos
76 76
77 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_MULTI_PROFILE_USER_CONTROLLER_H_ 77 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_MULTI_PROFILE_USER_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698