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

Side by Side Diff: chrome/browser/chromeos/policy/affiliated_cloud_policy_invalidator.h

Issue 1870793002: Convert //chrome/browser/chromeos from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 8 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 unified diff | Download patch
OLDNEW
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 #ifndef CHROME_BROWSER_CHROMEOS_POLICY_AFFILIATED_CLOUD_POLICY_INVALIDATOR_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_POLICY_AFFILIATED_CLOUD_POLICY_INVALIDATOR_H_
6 #define CHROME_BROWSER_CHROMEOS_POLICY_AFFILIATED_CLOUD_POLICY_INVALIDATOR_H_ 6 #define CHROME_BROWSER_CHROMEOS_POLICY_AFFILIATED_CLOUD_POLICY_INVALIDATOR_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory>
11
10 #include "base/macros.h" 12 #include "base/macros.h"
11 #include "base/memory/scoped_ptr.h"
12 #include "chrome/browser/chromeos/policy/affiliated_invalidation_service_provide r.h" 13 #include "chrome/browser/chromeos/policy/affiliated_invalidation_service_provide r.h"
13 #include "policy/proto/device_management_backend.pb.h" 14 #include "policy/proto/device_management_backend.pb.h"
14 15
15 namespace invalidation { 16 namespace invalidation {
16 class InvalidationService; 17 class InvalidationService;
17 } 18 }
18 19
19 namespace policy { 20 namespace policy {
20 21
21 class CloudPolicyCore; 22 class CloudPolicyCore;
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 const enterprise_management::DeviceRegisterRequest::Type type_; 56 const enterprise_management::DeviceRegisterRequest::Type type_;
56 CloudPolicyCore* const core_; 57 CloudPolicyCore* const core_;
57 58
58 AffiliatedInvalidationServiceProvider* const invalidation_service_provider_; 59 AffiliatedInvalidationServiceProvider* const invalidation_service_provider_;
59 60
60 // The highest invalidation version that was handled already. 61 // The highest invalidation version that was handled already.
61 int64_t highest_handled_invalidation_version_; 62 int64_t highest_handled_invalidation_version_;
62 63
63 // The current |CloudPolicyInvalidator|. nullptr if no connected invalidation 64 // The current |CloudPolicyInvalidator|. nullptr if no connected invalidation
64 // service is available. 65 // service is available.
65 scoped_ptr<CloudPolicyInvalidator> invalidator_; 66 std::unique_ptr<CloudPolicyInvalidator> invalidator_;
66 67
67 DISALLOW_COPY_AND_ASSIGN(AffiliatedCloudPolicyInvalidator); 68 DISALLOW_COPY_AND_ASSIGN(AffiliatedCloudPolicyInvalidator);
68 }; 69 };
69 70
70 } // namespace policy 71 } // namespace policy
71 72
72 #endif // CHROME_BROWSER_CHROMEOS_POLICY_AFFILIATED_CLOUD_POLICY_INVALIDATOR_H_ 73 #endif // CHROME_BROWSER_CHROMEOS_POLICY_AFFILIATED_CLOUD_POLICY_INVALIDATOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698