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

Unified Diff: chrome/browser/bookmarks/managed_bookmark_service_factory.cc

Issue 2606773002: Setup Chromad user policy plumbing (Closed)
Patch Set: Compilation fixes Created 4 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/bookmarks/managed_bookmark_service_factory.cc
diff --git a/chrome/browser/bookmarks/managed_bookmark_service_factory.cc b/chrome/browser/bookmarks/managed_bookmark_service_factory.cc
index 8018099f8af1839456be7cb628a56cea0a0f26c4..569cfcd938e7ab6c1b9817d2ba9f2e439b9fd740 100644
--- a/chrome/browser/bookmarks/managed_bookmark_service_factory.cc
+++ b/chrome/browser/bookmarks/managed_bookmark_service_factory.cc
@@ -22,9 +22,7 @@ namespace {
std::string GetManagedBookmarksDomain(Profile* profile) {
policy::ProfilePolicyConnector* connector =
policy::ProfilePolicyConnectorFactory::GetForBrowserContext(profile);
- if (connector->IsPolicyFromCloudPolicy(policy::key::kManagedBookmarks))
- return connector->GetManagementDomain();
- return std::string();
+ return connector->GetDisplayDomainForManagedBookmarks();
}
std::unique_ptr<KeyedService> BuildManagedBookmarkService(

Powered by Google App Engine
This is Rietveld 408576698