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

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

Issue 2371213002: Refactor: Inject StatisticsProvider as a dependency of DeviceCloudPolicyInitializer. (Closed)
Patch Set: Address Maksim's comments. Created 4 years, 3 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 3ed9efccd7a9d1dd4e522b9f17eb90e1ddc4f7df..1ee977533aa3cfc8635ecfb0c79efae25db63aac 100644
--- a/chrome/browser/chromeos/policy/fake_device_cloud_policy_initializer.cc
+++ b/chrome/browser/chromeos/policy/fake_device_cloud_policy_initializer.cc
@@ -14,16 +14,17 @@ namespace policy {
FakeDeviceCloudPolicyInitializer::FakeDeviceCloudPolicyInitializer()
: DeviceCloudPolicyInitializer(
- NULL, // local_state
- NULL, // enterprise_service
+ nullptr, // local_state
+ nullptr, // 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
- base::MakeUnique<chromeos::attestation::MockAttestationFlow>()),
+ scoped_refptr<base::SequencedTaskRunner>(nullptr),
+ nullptr, // install_attributes
+ nullptr, // state_keys_broker
+ nullptr, // device_store
+ nullptr, // manager
+ nullptr, // async_caller
+ base::MakeUnique<chromeos::attestation::MockAttestationFlow>(),
+ nullptr), // statistics_provider
was_start_enrollment_called_(false),
enrollment_status_(
EnrollmentStatus::ForStatus(EnrollmentStatus::STATUS_SUCCESS)) {}

Powered by Google App Engine
This is Rietveld 408576698