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

Unified Diff: chrome/test/base/testing_profile.cc

Issue 1078713002: Supervised users: Re-check ManagementPolicy when ProfileIsSupervised changes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/test/base/testing_profile.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/base/testing_profile.cc
diff --git a/chrome/test/base/testing_profile.cc b/chrome/test/base/testing_profile.cc
index 12ecbe99e8f953e20b415a299160ee79500a9a04..3693fb440ce681607e614dd4087fa26a8ad291a5 100644
--- a/chrome/test/base/testing_profile.cc
+++ b/chrome/test/base/testing_profile.cc
@@ -766,6 +766,10 @@ Profile* TestingProfile::GetOriginalProfile() {
return this;
}
+void TestingProfile::SetSupervisedUserId(const std::string& id) {
+ supervised_user_id_ = id;
Bernhard Bauer 2015/04/09 12:15:05 You could change the pref from here :)
Marc Treib 2015/04/09 12:37:27 Done.
+}
+
bool TestingProfile::IsSupervised() {
return !supervised_user_id_.empty();
}
« no previous file with comments | « chrome/test/base/testing_profile.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698