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

Unified Diff: chrome/browser/ui/webui/policy_ui_handler.cc

Issue 2606773002: Setup Chromad user policy plumbing (Closed)
Patch Set: Rebase 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
« no previous file with comments | « chrome/browser/profiles/profile_impl.cc ('k') | chromeos/dbus/auth_policy_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/policy_ui_handler.cc
diff --git a/chrome/browser/ui/webui/policy_ui_handler.cc b/chrome/browser/ui/webui/policy_ui_handler.cc
index d9bb3ccd01874c90768d230acfea3fcf460cabf9..38a5a80669dd715e06a1ebcc2c98822dc79f278e 100644
--- a/chrome/browser/ui/webui/policy_ui_handler.cc
+++ b/chrome/browser/ui/webui/policy_ui_handler.cc
@@ -60,7 +60,7 @@
#include "chrome/browser/chromeos/policy/device_cloud_policy_store_chromeos.h"
#include "chrome/browser/chromeos/policy/device_local_account_policy_service.h"
#include "chrome/browser/chromeos/policy/user_cloud_policy_manager_chromeos.h"
-#include "chrome/browser/chromeos/policy/user_cloud_policy_manager_factory_chromeos.h"
+#include "chrome/browser/chromeos/policy/user_policy_manager_factory_chromeos.h"
#include "chrome/browser/chromeos/settings/install_attributes.h"
#include "components/user_manager/user_manager.h"
#else
@@ -549,8 +549,8 @@ void PolicyUIHandler::RegisterMessages() {
}
} else {
policy::UserCloudPolicyManagerChromeOS* user_cloud_policy_manager =
- policy::UserCloudPolicyManagerFactoryChromeOS::GetForProfile(
- Profile::FromWebUI(web_ui()));
+ policy::UserPolicyManagerFactoryChromeOS::
+ GetCloudPolicyManagerForProfile(Profile::FromWebUI(web_ui()));
if (user_cloud_policy_manager) {
user_status_provider_ =
base::MakeUnique<UserPolicyStatusProvider>(
« no previous file with comments | « chrome/browser/profiles/profile_impl.cc ('k') | chromeos/dbus/auth_policy_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698