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

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

Issue 2276593004: Device registration using an enrollment certificate from the PCA. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed constant. Created 4 years, 4 months 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/fake_device_cloud_policy_initializer.cc
diff --git a/chrome/browser/chromeos/policy/fake_device_cloud_policy_initializer.cc b/chrome/browser/chromeos/policy/fake_device_cloud_policy_initializer.cc
index 575d3cafe6606bce7a9838b7043eaa8f3a2c2c8f..2a6c17af4d69ba2b819a19bca1d2d2df16755906 100644
--- a/chrome/browser/chromeos/policy/fake_device_cloud_policy_initializer.cc
+++ b/chrome/browser/chromeos/policy/fake_device_cloud_policy_initializer.cc
@@ -4,8 +4,10 @@
#include "chrome/browser/chromeos/policy/fake_device_cloud_policy_initializer.h"
+#include "base/memory/ptr_util.h"
#include "base/memory/ref_counted.h"
#include "base/sequenced_task_runner.h"
+#include "chromeos/attestation/mock_attestation_flow.h"
#include "components/policy/core/common/cloud/device_management_service.h"
namespace policy {
@@ -16,12 +18,12 @@ FakeDeviceCloudPolicyInitializer::FakeDeviceCloudPolicyInitializer()
NULL, // enterprise_service
// background_task_runner
scoped_refptr<base::SequencedTaskRunner>(NULL),
- NULL, // install_attributes
- NULL, // state_keys_broker
- NULL, // device_store
- NULL, // manager
- NULL, // async_caller
- NULL), // cryptohome_client
+ NULL, // install_attributes
+ NULL, // state_keys_broker
+ NULL, // device_store
+ NULL, // manager
+ NULL, // async_caller
+ base::MakeUnique<chromeos::attestation::MockAttestationFlow>()),
was_start_enrollment_called_(false),
enrollment_status_(
EnrollmentStatus::ForStatus(EnrollmentStatus::STATUS_SUCCESS)) {}
« no previous file with comments | « chrome/browser/chromeos/policy/enrollment_handler_chromeos.cc ('k') | components/policy/core/common/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698