summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortzik@chromium.org <tzik@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-02-14 07:24:10 +0000
committertzik@chromium.org <tzik@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-02-14 07:24:10 +0000
commitb0396cabd6623c5f42f6ff2b200ff00eb47f376d (patch)
tree8009ec5f6f9247c219929b80d9b21a12e69058a8
parent540125c47b1548337d53ddf33345cda9425173ab (diff)
downloadchromium_src-b0396cabd6623c5f42f6ff2b200ff00eb47f376d.zip
chromium_src-b0396cabd6623c5f42f6ff2b200ff00eb47f376d.tar.gz
chromium_src-b0396cabd6623c5f42f6ff2b200ff00eb47f376d.tar.bz2
[Identity] Use const ref on ExtensionTokenKey parameter
Review URL: https://codereview.chromium.org/163013002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@251268 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--chrome/browser/extensions/api/identity/extension_token_key.cc2
-rw-r--r--chrome/browser/extensions/api/identity/extension_token_key.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/extensions/api/identity/extension_token_key.cc b/chrome/browser/extensions/api/identity/extension_token_key.cc
index 8132983..146fc50 100644
--- a/chrome/browser/extensions/api/identity/extension_token_key.cc
+++ b/chrome/browser/extensions/api/identity/extension_token_key.cc
@@ -8,7 +8,7 @@ namespace extensions {
ExtensionTokenKey::ExtensionTokenKey(const std::string& extension_id,
const std::string& account_id,
- const std::set<std::string> scopes)
+ const std::set<std::string>& scopes)
: extension_id(extension_id), account_id(account_id), scopes(scopes) {}
ExtensionTokenKey::~ExtensionTokenKey() {}
diff --git a/chrome/browser/extensions/api/identity/extension_token_key.h b/chrome/browser/extensions/api/identity/extension_token_key.h
index 4ada0cf..b6a0f9f 100644
--- a/chrome/browser/extensions/api/identity/extension_token_key.h
+++ b/chrome/browser/extensions/api/identity/extension_token_key.h
@@ -13,7 +13,7 @@ namespace extensions {
struct ExtensionTokenKey {
ExtensionTokenKey(const std::string& extension_id,
const std::string& account_id,
- const std::set<std::string> scopes);
+ const std::set<std::string>& scopes);
~ExtensionTokenKey();
bool operator<(const ExtensionTokenKey& rhs) const;
std::string extension_id;