summaryrefslogtreecommitdiffstats
path: root/extensions/shell/common
diff options
context:
space:
mode:
authorrdevlin.cronin <rdevlin.cronin@chromium.org>2015-09-30 13:19:33 -0700
committerCommit bot <commit-bot@chromium.org>2015-09-30 20:20:45 +0000
commitd630c304b8d53e1e068d5ef094f14b70507f4844 (patch)
treee0eb6e1a3cd07b51caedb2f2f014af5bff91c0d2 /extensions/shell/common
parent3f38c02b4c4f4d10b7350bf492a05c9215b8b656 (diff)
downloadchromium_src-d630c304b8d53e1e068d5ef094f14b70507f4844.zip
chromium_src-d630c304b8d53e1e068d5ef094f14b70507f4844.tar.gz
chromium_src-d630c304b8d53e1e068d5ef094f14b70507f4844.tar.bz2
[Extensions] Make const PermissionSet* const PermissionSet& where possible
Replace a bunch of pointers with const&. TBR=pkotwicz@chromium.org (themes) TBR=atwilson@chromium.org (background) TBR=rogerta@chromium.org (ui/sync) BUG=455414 Review URL: https://codereview.chromium.org/1365443003 Cr-Commit-Position: refs/heads/master@{#351631}
Diffstat (limited to 'extensions/shell/common')
-rw-r--r--extensions/shell/common/shell_extensions_client.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/extensions/shell/common/shell_extensions_client.cc b/extensions/shell/common/shell_extensions_client.cc
index cd0b9fa..4a37b09 100644
--- a/extensions/shell/common/shell_extensions_client.cc
+++ b/extensions/shell/common/shell_extensions_client.cc
@@ -47,8 +47,8 @@ class ShellPermissionMessageProvider : public PermissionMessageProvider {
return PermissionMessages();
}
- bool IsPrivilegeIncrease(const PermissionSet* old_permissions,
- const PermissionSet* new_permissions,
+ bool IsPrivilegeIncrease(const PermissionSet& old_permissions,
+ const PermissionSet& new_permissions,
Manifest::Type extension_type) const override {
// Ensure we implement this before shipping.
CHECK(false);
@@ -56,7 +56,7 @@ class ShellPermissionMessageProvider : public PermissionMessageProvider {
}
PermissionIDSet GetAllPermissionIDs(
- const PermissionSet* permissions,
+ const PermissionSet& permissions,
Manifest::Type extension_type) const override {
return PermissionIDSet();
}