Index: chrome/browser/extensions/scripting_permissions_modifier.cc |
diff --git a/chrome/browser/extensions/scripting_permissions_modifier.cc b/chrome/browser/extensions/scripting_permissions_modifier.cc |
index 71e3c82bfce7cca4c2d066559f5b504a23e7df54..b52a03663b7e8b0c91ea8349ccefe78b425fd9bd 100644 |
--- a/chrome/browser/extensions/scripting_permissions_modifier.cc |
+++ b/chrome/browser/extensions/scripting_permissions_modifier.cc |
@@ -87,8 +87,8 @@ bool ScriptingPermissionsModifier::HasGrantedHostPermission( |
.effective_hosts() |
.MatchesURL(origin)) |
return false; |
- scoped_ptr<const PermissionSet> granted_permissions; |
- scoped_ptr<const PermissionSet> withheld_permissions; |
+ std::unique_ptr<const PermissionSet> granted_permissions; |
+ std::unique_ptr<const PermissionSet> withheld_permissions; |
WithholdPermissions(required_permissions, &granted_permissions, |
&withheld_permissions, true); |
if (!granted_permissions->effective_hosts().MatchesURL(origin) && |
@@ -122,8 +122,8 @@ void ScriptingPermissionsModifier::RemoveGrantedHostPermission( |
void ScriptingPermissionsModifier::WithholdPermissions( |
const PermissionSet& permissions, |
- scoped_ptr<const PermissionSet>* granted_permissions_out, |
- scoped_ptr<const PermissionSet>* withheld_permissions_out, |
+ std::unique_ptr<const PermissionSet>* granted_permissions_out, |
+ std::unique_ptr<const PermissionSet>* withheld_permissions_out, |
bool use_initial_state) const { |
bool should_withhold = false; |
if (CanAffectExtension(permissions)) { |