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

Unified Diff: chrome/browser/chromeos/policy/user_cloud_policy_manager_chromeos.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/user_cloud_policy_manager_chromeos.cc
diff --git a/chrome/browser/chromeos/policy/user_cloud_policy_manager_chromeos.cc b/chrome/browser/chromeos/policy/user_cloud_policy_manager_chromeos.cc
index df022e079ba55af148393bb888d37c1922c71e2e..48f769cce3e88241e35e6778a4ca303de09eedcf 100644
--- a/chrome/browser/chromeos/policy/user_cloud_policy_manager_chromeos.cc
+++ b/chrome/browser/chromeos/policy/user_cloud_policy_manager_chromeos.cc
@@ -11,6 +11,7 @@
#include "base/bind_helpers.h"
#include "base/command_line.h"
#include "base/logging.h"
+#include "base/memory/ptr_util.h"
#include "base/metrics/histogram_macros.h"
#include "base/metrics/sparse_histogram.h"
#include "base/sequenced_task_runner.h"
@@ -131,10 +132,11 @@ void UserCloudPolicyManagerChromeOS::Connect(
// Use the system request context here instead of a context derived
// from the Profile because Connect() is called before the profile is
// fully initialized (required so we can perform the initial policy load).
- std::unique_ptr<CloudPolicyClient> cloud_policy_client(new CloudPolicyClient(
- std::string(), std::string(), kPolicyVerificationKeyHash,
- device_management_service, system_request_context,
- nullptr /* signing_service */));
+ std::unique_ptr<CloudPolicyClient> cloud_policy_client =
+ base::MakeUnique<CloudPolicyClient>(
+ std::string() /* machine_id */, std::string() /* machine_model */,
+ device_management_service, system_request_context,
+ nullptr /* signing_service */);
CreateComponentCloudPolicyService(
dm_protocol::kChromeExtensionPolicyType, component_policy_cache_path_,
system_request_context, cloud_policy_client.get(), schema_registry());

Powered by Google App Engine
This is Rietveld 408576698