| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/chromeos/policy/affiliated_cloud_policy_invalidator.h" | 5 #include "chrome/browser/chromeos/policy/affiliated_cloud_policy_invalidator.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/thread_task_runner_handle.h" | 8 #include "base/threading/thread_task_runner_handle.h" |
| 9 #include "base/time/clock.h" | 9 #include "base/time/clock.h" |
| 10 #include "base/time/default_clock.h" | 10 #include "base/time/default_clock.h" |
| 11 #include "chrome/browser/policy/cloud/cloud_policy_invalidator.h" | 11 #include "chrome/browser/policy/cloud/cloud_policy_invalidator.h" |
| 12 | 12 |
| 13 namespace policy { | 13 namespace policy { |
| 14 | 14 |
| 15 AffiliatedCloudPolicyInvalidator::AffiliatedCloudPolicyInvalidator( | 15 AffiliatedCloudPolicyInvalidator::AffiliatedCloudPolicyInvalidator( |
| 16 enterprise_management::DeviceRegisterRequest::Type type, | 16 enterprise_management::DeviceRegisterRequest::Type type, |
| 17 CloudPolicyCore* core, | 17 CloudPolicyCore* core, |
| 18 AffiliatedInvalidationServiceProvider* invalidation_service_provider) | 18 AffiliatedInvalidationServiceProvider* invalidation_service_provider) |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 if (!invalidator_) | 54 if (!invalidator_) |
| 55 return; | 55 return; |
| 56 | 56 |
| 57 highest_handled_invalidation_version_ = | 57 highest_handled_invalidation_version_ = |
| 58 invalidator_->highest_handled_invalidation_version(); | 58 invalidator_->highest_handled_invalidation_version(); |
| 59 invalidator_->Shutdown(); | 59 invalidator_->Shutdown(); |
| 60 invalidator_.reset(); | 60 invalidator_.reset(); |
| 61 } | 61 } |
| 62 | 62 |
| 63 } // namespace policy | 63 } // namespace policy |
| OLD | NEW |