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

Unified Diff: components/policy/core/common/cloud/device_management_service.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 side-by-side diff with in-line comments
Download patch
Index: components/policy/core/common/cloud/device_management_service.h
diff --git a/components/policy/core/common/cloud/device_management_service.h b/components/policy/core/common/cloud/device_management_service.h
index b4986fa8d7299ca44963f05c747e08c0cc7bf9ec..5a405f0c2835a165d64757244111888e1a66ac42 100644
--- a/components/policy/core/common/cloud/device_management_service.h
+++ b/components/policy/core/common/cloud/device_management_service.h
@@ -9,6 +9,7 @@
#include <deque>
#include <map>
+#include <memory>
#include <string>
#include <vector>
@@ -16,7 +17,6 @@
#include "base/compiler_specific.h"
#include "base/macros.h"
#include "base/memory/ref_counted.h"
-#include "base/memory/scoped_ptr.h"
#include "base/memory/weak_ptr.h"
#include "base/strings/string_split.h"
#include "components/policy/core/common/cloud/cloud_policy_constants.h"
@@ -130,7 +130,8 @@ class POLICY_EXPORT DeviceManagementService : public net::URLFetcherDelegate {
virtual std::string GetPlatformParameter() = 0;
};
- explicit DeviceManagementService(scoped_ptr<Configuration> configuration);
+ explicit DeviceManagementService(
+ std::unique_ptr<Configuration> configuration);
~DeviceManagementService() override;
// The ID of URLFetchers created by the DeviceManagementService. This can be
@@ -179,7 +180,7 @@ class POLICY_EXPORT DeviceManagementService : public net::URLFetcherDelegate {
// A Configuration implementation that is used to obtain various parameters
// used to talk to the device management server.
- scoped_ptr<Configuration> configuration_;
+ std::unique_ptr<Configuration> configuration_;
// The jobs we currently have in flight.
JobFetcherMap pending_jobs_;

Powered by Google App Engine
This is Rietveld 408576698