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

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

Issue 2537643003: Drop verification_key_hash from CloudPolicyClient constructor (Closed)
Patch Set: git cl format 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/device_local_account_policy_service.cc
diff --git a/chrome/browser/chromeos/policy/device_local_account_policy_service.cc b/chrome/browser/chromeos/policy/device_local_account_policy_service.cc
index 482544ca81909aea7e329892315b54f20541e954..b130bb1920bcc8ee6a738c563214a5a37450de83 100644
--- a/chrome/browser/chromeos/policy/device_local_account_policy_service.cc
+++ b/chrome/browser/chromeos/policy/device_local_account_policy_service.cc
@@ -13,6 +13,7 @@
#include "base/files/file_enumerator.h"
#include "base/files/file_util.h"
#include "base/logging.h"
+#include "base/memory/ptr_util.h"
#include "base/message_loop/message_loop.h"
#include "base/path_service.h"
#include "base/sequenced_task_runner.h"
@@ -65,10 +66,11 @@ std::unique_ptr<CloudPolicyClient> CreateClient(
return std::unique_ptr<CloudPolicyClient>();
}
- std::unique_ptr<CloudPolicyClient> client(new CloudPolicyClient(
- std::string(), std::string(), kPolicyVerificationKeyHash,
- device_management_service, system_request_context,
- nullptr /* signing_service */));
+ std::unique_ptr<CloudPolicyClient> client =
+ base::MakeUnique<CloudPolicyClient>(
+ std::string() /* machine_id */, std::string() /* machine_model */,
+ device_management_service, system_request_context,
+ nullptr /* signing_service */);
client->SetupRegistration(policy_data->request_token(),
policy_data->device_id());
return client;

Powered by Google App Engine
This is Rietveld 408576698