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

Unified Diff: chrome/browser/supervised_user/supervised_user_service.cc

Issue 675183002: SupervisedUserService: Expose second custodian's name/email (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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/browser/supervised_user/supervised_user_service.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/supervised_user/supervised_user_service.cc
diff --git a/chrome/browser/supervised_user/supervised_user_service.cc b/chrome/browser/supervised_user/supervised_user_service.cc
index e51885292e1c884b89a4208b42543a85609054e1..67309b533ed045ff77904d12d7f2e621beb12c8d 100644
--- a/chrome/browser/supervised_user/supervised_user_service.cc
+++ b/chrome/browser/supervised_user/supervised_user_service.cc
@@ -316,6 +316,17 @@ std::string SupervisedUserService::GetCustodianName() const {
return name.empty() ? GetCustodianEmailAddress() : name;
}
+std::string SupervisedUserService::GetSecondCustodianEmailAddress() const {
+ return profile_->GetPrefs()->GetString(
+ prefs::kSupervisedUserSecondCustodianEmail);
+}
+
+std::string SupervisedUserService::GetSecondCustodianName() const {
+ std::string name = profile_->GetPrefs()->GetString(
+ prefs::kSupervisedUserSecondCustodianName);
+ return name.empty() ? GetSecondCustodianEmailAddress() : name;
+}
+
void SupervisedUserService::AddNavigationBlockedCallback(
const NavigationBlockedCallback& callback) {
navigation_blocked_callbacks_.push_back(callback);
« no previous file with comments | « chrome/browser/supervised_user/supervised_user_service.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698