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

Side by Side Diff: components/policy/core/browser/browser_policy_connector.h

Issue 1902633006: Convert //components/policy from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments and use namespace alias 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 COMPONENTS_POLICY_CORE_BROWSER_BROWSER_POLICY_CONNECTOR_H_ 5 #ifndef COMPONENTS_POLICY_CORE_BROWSER_BROWSER_POLICY_CONNECTOR_H_
6 #define COMPONENTS_POLICY_CORE_BROWSER_BROWSER_POLICY_CONNECTOR_H_ 6 #define COMPONENTS_POLICY_CORE_BROWSER_BROWSER_POLICY_CONNECTOR_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 62
63 protected: 63 protected:
64 // Builds an uninitialized BrowserPolicyConnector. 64 // Builds an uninitialized BrowserPolicyConnector.
65 // Init() should be called to create and start the policy components. 65 // Init() should be called to create and start the policy components.
66 explicit BrowserPolicyConnector( 66 explicit BrowserPolicyConnector(
67 const HandlerListFactory& handler_list_factory); 67 const HandlerListFactory& handler_list_factory);
68 68
69 // Helper for the public Init() that must be called by subclasses. 69 // Helper for the public Init() that must be called by subclasses.
70 void InitInternal( 70 void InitInternal(
71 PrefService* local_state, 71 PrefService* local_state,
72 scoped_ptr<DeviceManagementService> device_management_service); 72 std::unique_ptr<DeviceManagementService> device_management_service);
73 73
74 private: 74 private:
75 scoped_ptr<PolicyStatisticsCollector> policy_statistics_collector_; 75 std::unique_ptr<PolicyStatisticsCollector> policy_statistics_collector_;
76 76
77 scoped_ptr<DeviceManagementService> device_management_service_; 77 std::unique_ptr<DeviceManagementService> device_management_service_;
78 78
79 DISALLOW_COPY_AND_ASSIGN(BrowserPolicyConnector); 79 DISALLOW_COPY_AND_ASSIGN(BrowserPolicyConnector);
80 }; 80 };
81 81
82 } // namespace policy 82 } // namespace policy
83 83
84 #endif // COMPONENTS_POLICY_CORE_BROWSER_BROWSER_POLICY_CONNECTOR_H_ 84 #endif // COMPONENTS_POLICY_CORE_BROWSER_BROWSER_POLICY_CONNECTOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698