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

Unified Diff: extensions/common/api/sockets/sockets_manifest_data.h

Issue 1908953003: Convert //extensions/{common,shell} 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 side-by-side diff with in-line comments
Download patch
Index: extensions/common/api/sockets/sockets_manifest_data.h
diff --git a/extensions/common/api/sockets/sockets_manifest_data.h b/extensions/common/api/sockets/sockets_manifest_data.h
index de9dd8f57170c5ac4be8cf50b342cd8a4cca8cb0..08c6f69a4db7f712bc68d9f463aef761cc1892dc 100644
--- a/extensions/common/api/sockets/sockets_manifest_data.h
+++ b/extensions/common/api/sockets/sockets_manifest_data.h
@@ -25,7 +25,7 @@ namespace extensions {
class SocketsManifestData : public Extension::ManifestData {
public:
explicit SocketsManifestData(
- scoped_ptr<SocketsManifestPermission> permission);
+ std::unique_ptr<SocketsManifestPermission> permission);
~SocketsManifestData() override;
// Gets the SocketsManifestData for |extension|, or NULL if none was
@@ -37,15 +37,16 @@ class SocketsManifestData : public Extension::ManifestData {
// Tries to construct the info based on |value|, as it would have appeared in
// the manifest. Sets |error| and returns an empty scoped_ptr on failure.
- static scoped_ptr<SocketsManifestData> FromValue(const base::Value& value,
- base::string16* error);
+ static std::unique_ptr<SocketsManifestData> FromValue(
+ const base::Value& value,
+ base::string16* error);
const SocketsManifestPermission* permission() const {
return permission_.get();
}
private:
- scoped_ptr<SocketsManifestPermission> permission_;
+ std::unique_ptr<SocketsManifestPermission> permission_;
};
} // namespace extensions

Powered by Google App Engine
This is Rietveld 408576698