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/chromeos/policy/enrollment_handler_chromeos.cc

Issue 762863002: Removed policy::PolicyNamespaceKey. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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/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));

Powered by Google App Engine
This is Rietveld 408576698