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

Unified Diff: chrome/browser/ui/webui/chromeos/login/core_oobe_handler.cc

Issue 2486813002: Add DeviceADPolicyManager to provide AD policy. (Closed)
Patch Set: Address Bernhard's comments 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/ui/webui/chromeos/login/core_oobe_handler.cc
diff --git a/chrome/browser/ui/webui/chromeos/login/core_oobe_handler.cc b/chrome/browser/ui/webui/chromeos/login/core_oobe_handler.cc
index dc203f3906e8ddb75d85f9cd269669b6a1358ea3..cdad94d4295283df4356f2560323a277026b1eec 100644
--- a/chrome/browser/ui/webui/chromeos/login/core_oobe_handler.cc
+++ b/chrome/browser/ui/webui/chromeos/login/core_oobe_handler.cc
@@ -452,10 +452,14 @@ void CoreOobeHandler::UpdateLabel(const std::string& id,
}
void CoreOobeHandler::UpdateDeviceRequisition() {
- policy::BrowserPolicyConnectorChromeOS* connector =
- g_browser_process->platform_part()->browser_policy_connector_chromeos();
- CallJSOrDefer("updateDeviceRequisition",
- connector->GetDeviceCloudPolicyManager()->GetDeviceRequisition());
+ policy::DeviceCloudPolicyManagerChromeOS* policy_manager =
+ g_browser_process->platform_part()
+ ->browser_policy_connector_chromeos()
+ ->GetDeviceCloudPolicyManager();
+ if (policy_manager) {
+ CallJSOrDefer("updateDeviceRequisition",
+ policy_manager->GetDeviceRequisition());
+ }
}
void CoreOobeHandler::UpdateKeyboardState() {

Powered by Google App Engine
This is Rietveld 408576698