Index: chrome/browser/chromeos/policy/enrollment_handler_chromeos.cc |
diff --git a/chrome/browser/chromeos/policy/enrollment_handler_chromeos.cc b/chrome/browser/chromeos/policy/enrollment_handler_chromeos.cc |
index 7fc8d819fbd6d4440f05663b5681e5816a4fd9a5..2b8e785f5d40b07627be18b6435db47fc1289a10 100644 |
--- a/chrome/browser/chromeos/policy/enrollment_handler_chromeos.cc |
+++ b/chrome/browser/chromeos/policy/enrollment_handler_chromeos.cc |
@@ -76,8 +76,7 @@ EnrollmentHandlerChromeOS::EnrollmentHandlerChromeOS( |
management_mode_ == em::PolicyData::CONSUMER_MANAGED); |
store_->AddObserver(this); |
client_->AddObserver(this); |
- client_->AddNamespaceToFetch(PolicyNamespaceKey( |
- dm_protocol::kChromeDevicePolicyType, std::string())); |
+ client_->AddPolicyTypeToFetch(dm_protocol::kChromeDevicePolicyType, ""); |
} |
EnrollmentHandlerChromeOS::~EnrollmentHandlerChromeOS() { |
@@ -105,8 +104,8 @@ void EnrollmentHandlerChromeOS::OnPolicyFetched(CloudPolicyClient* client) { |
enrollment_step_ = STEP_VALIDATION; |
// Validate the policy. |
- const em::PolicyFetchResponse* policy = client_->GetPolicyFor( |
- PolicyNamespaceKey(dm_protocol::kChromeDevicePolicyType, std::string())); |
+ const em::PolicyFetchResponse* policy = |
+ client_->GetPolicyFor(dm_protocol::kChromeDevicePolicyType, ""); |
if (!policy) { |
ReportResult(EnrollmentStatus::ForFetchError( |
DM_STATUS_RESPONSE_DECODING_ERROR)); |