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

Unified Diff: chrome/browser/chromeos/policy/browser_policy_connector_chromeos.cc

Issue 2530833002: Start authpolicyd (Closed)
Patch Set: Created 4 years, 1 month 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/chromeos/policy/browser_policy_connector_chromeos.cc
diff --git a/chrome/browser/chromeos/policy/browser_policy_connector_chromeos.cc b/chrome/browser/chromeos/policy/browser_policy_connector_chromeos.cc
index 82fa3d3d51d5f14880bb32c22b73579d767a3ac2..74ee2e09b55fe1dd9f5b6d3e1af88252d9a4bf8b 100644
--- a/chrome/browser/chromeos/policy/browser_policy_connector_chromeos.cc
+++ b/chrome/browser/chromeos/policy/browser_policy_connector_chromeos.cc
@@ -45,6 +45,7 @@
#include "chromeos/cryptohome/system_salt_getter.h"
#include "chromeos/dbus/cryptohome_client.h"
#include "chromeos/dbus/dbus_thread_manager.h"
+#include "chromeos/dbus/upstart_client.h"
#include "chromeos/network/network_handler.h"
#include "chromeos/network/onc/onc_certificate_importer_impl.h"
#include "chromeos/settings/cros_settings_names.h"
@@ -110,6 +111,14 @@ BrowserPolicyConnectorChromeOS::BrowserPolicyConnectorChromeOS()
GetBackgroundTaskRunner());
if (install_attributes_->IsActiveDirectoryManaged()) {
+ chromeos::DBusThreadManager* thread_manager =
+ chromeos::DBusThreadManager::Get();
+ DCHECK(thread_manager);
Alexander Alekseev 2016/12/01 09:02:20 nit: remove DCHECK According to https://chromium.
Roman Sorokin (ftl) 2016/12/01 13:18:56 Done.
Thiemo Nagel 2016/12/01 13:33:51 I'm fine with removing the DCHECK(), but just for
Alexander Alekseev 2016/12/02 01:10:34 Yes, I actually agree with you. I just got used to
+ chromeos::UpstartClient* upstart_client =
+ thread_manager->GetUpstartClient();
+ DCHECK(upstart_client);
Alexander Alekseev 2016/12/01 09:02:20 Ditto.
Roman Sorokin (ftl) 2016/12/01 13:18:56 Done.
+ upstart_client->StartAuthPolicyService();
+
device_active_directory_policy_manager_ =
new DeviceActiveDirectoryPolicyManager(
std::move(device_cloud_policy_store));

Powered by Google App Engine
This is Rietveld 408576698