| Index: extensions/common/permissions/permission_set.cc
|
| diff --git a/extensions/common/permissions/permission_set.cc b/extensions/common/permissions/permission_set.cc
|
| index ee21137fcdcba4e481e5ad0a8a9364552ed7d084..c3290ed9dfb8d6a3e30a20a214ae0257678c912c 100644
|
| --- a/extensions/common/permissions/permission_set.cc
|
| +++ b/extensions/common/permissions/permission_set.cc
|
| @@ -53,8 +53,8 @@ PermissionSet* PermissionSet::CreateDifference(
|
| const PermissionSet* set1,
|
| const PermissionSet* set2) {
|
| scoped_refptr<PermissionSet> empty = new PermissionSet();
|
| - const PermissionSet* set1_safe = (set1 == NULL) ? empty.get() : set1;
|
| - const PermissionSet* set2_safe = (set2 == NULL) ? empty.get() : set2;
|
| + const PermissionSet* set1_safe = (set1 == nullptr) ? empty.get() : set1;
|
| + const PermissionSet* set2_safe = (set2 == nullptr) ? empty.get() : set2;
|
|
|
| APIPermissionSet apis;
|
| APIPermissionSet::Difference(set1_safe->apis(), set2_safe->apis(), &apis);
|
| @@ -83,8 +83,8 @@ PermissionSet* PermissionSet::CreateIntersection(
|
| const PermissionSet* set1,
|
| const PermissionSet* set2) {
|
| scoped_refptr<PermissionSet> empty = new PermissionSet();
|
| - const PermissionSet* set1_safe = (set1 == NULL) ? empty.get() : set1;
|
| - const PermissionSet* set2_safe = (set2 == NULL) ? empty.get() : set2;
|
| + const PermissionSet* set1_safe = (set1 == nullptr) ? empty.get() : set1;
|
| + const PermissionSet* set2_safe = (set2 == nullptr) ? empty.get() : set2;
|
|
|
| APIPermissionSet apis;
|
| APIPermissionSet::Intersection(set1_safe->apis(), set2_safe->apis(), &apis);
|
| @@ -113,8 +113,8 @@ PermissionSet* PermissionSet::CreateUnion(
|
| const PermissionSet* set1,
|
| const PermissionSet* set2) {
|
| scoped_refptr<PermissionSet> empty = new PermissionSet();
|
| - const PermissionSet* set1_safe = (set1 == NULL) ? empty.get() : set1;
|
| - const PermissionSet* set2_safe = (set2 == NULL) ? empty.get() : set2;
|
| + const PermissionSet* set1_safe = (set1 == nullptr) ? empty.get() : set1;
|
| + const PermissionSet* set2_safe = (set2 == nullptr) ? empty.get() : set2;
|
|
|
| APIPermissionSet apis;
|
| APIPermissionSet::Union(set1_safe->apis(), set2_safe->apis(), &apis);
|
| @@ -185,7 +185,7 @@ bool PermissionSet::HasAPIPermission(const std::string& permission_name) const {
|
| }
|
|
|
| bool PermissionSet::CheckAPIPermission(APIPermission::ID permission) const {
|
| - return CheckAPIPermissionWithParam(permission, NULL);
|
| + return CheckAPIPermissionWithParam(permission, nullptr);
|
| }
|
|
|
| bool PermissionSet::CheckAPIPermissionWithParam(
|
|
|