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

Unified Diff: extensions/common/permissions/permission_set.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/permissions/permission_set.h
diff --git a/extensions/common/permissions/permission_set.h b/extensions/common/permissions/permission_set.h
index b03a8697f8d5aa4fc52f1fe364b40fb81a8d5a48..af5f6475928b97544b81755025b5559bdb7225a5 100644
--- a/extensions/common/permissions/permission_set.h
+++ b/extensions/common/permissions/permission_set.h
@@ -42,25 +42,26 @@ class PermissionSet {
~PermissionSet();
// Creates a new permission set equal to |set1| - |set2|.
- static scoped_ptr<const PermissionSet> CreateDifference(
+ static std::unique_ptr<const PermissionSet> CreateDifference(
const PermissionSet& set1,
const PermissionSet& set2);
// Creates a new permission set equal to the intersection of |set1| and
// |set2|.
- static scoped_ptr<const PermissionSet> CreateIntersection(
+ static std::unique_ptr<const PermissionSet> CreateIntersection(
const PermissionSet& set1,
const PermissionSet& set2);
// Creates a new permission set equal to the union of |set1| and |set2|.
- static scoped_ptr<const PermissionSet> CreateUnion(const PermissionSet& set1,
- const PermissionSet& set2);
+ static std::unique_ptr<const PermissionSet> CreateUnion(
+ const PermissionSet& set1,
+ const PermissionSet& set2);
bool operator==(const PermissionSet& rhs) const;
bool operator!=(const PermissionSet& rhs) const;
// Returns a copy of this PermissionSet.
- scoped_ptr<const PermissionSet> Clone() const;
+ std::unique_ptr<const PermissionSet> Clone() const;
// Returns true if every API or host permission available to |set| is also
// available to this. In other words, if the API permissions of |set| are a
« no previous file with comments | « extensions/common/permissions/media_galleries_permission_data.cc ('k') | extensions/common/permissions/permission_set.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698