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

Unified Diff: chrome/browser/policy/profile_policy_connector.cc

Issue 2694933003: Return management state without retrieving the management domain if the (Closed)
Patch Set: Created 3 years, 10 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/policy/profile_policy_connector.cc
diff --git a/chrome/browser/policy/profile_policy_connector.cc b/chrome/browser/policy/profile_policy_connector.cc
index 0573a8a35ca32de2542af356a7da44b55ce03405..6cfece6ef87b009012df4adf1120617bee748610 100644
--- a/chrome/browser/policy/profile_policy_connector.cc
+++ b/chrome/browser/policy/profile_policy_connector.cc
@@ -154,6 +154,8 @@ void ProfilePolicyConnector::Shutdown() {
bool ProfilePolicyConnector::IsManaged() const {
if (is_managed_override_)
return *is_managed_override_;
+ if (policy_store_)
+ return policy_store_->is_managed();
return !GetManagementDomain().empty();
Thiemo Nagel 2017/02/14 17:06:03 I'd suggest to use the store also in the case of s
Marton Hunyady 2017/02/14 19:22:17 Done.
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698