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

Unified Diff: chrome/common/extensions/extension_permission_set.cc

Issue 10389137: Coverity: Fix pass by value error. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 7 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
« no previous file with comments | « chrome/common/extensions/extension_permission_set.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/extension_permission_set.cc
diff --git a/chrome/common/extensions/extension_permission_set.cc b/chrome/common/extensions/extension_permission_set.cc
index cf2e40f802a4d89f8f1e46748cda540280f978c6..4b7e39e2519588c35c5f7c72502db16096a0a4b5 100644
--- a/chrome/common/extensions/extension_permission_set.cc
+++ b/chrome/common/extensions/extension_permission_set.cc
@@ -380,7 +380,8 @@ ExtensionAPIPermission* ExtensionPermissionsInfo::GetByID(
return (i == id_map_.end()) ? NULL : i->second;
}
-ExtensionAPIPermission* ExtensionPermissionsInfo::GetByName(std::string name) {
+ExtensionAPIPermission* ExtensionPermissionsInfo::GetByName(
+ const std::string& name) {
NameMap::iterator i = name_map_.find(name);
return (i == name_map_.end()) ? NULL : i->second;
}
« no previous file with comments | « chrome/common/extensions/extension_permission_set.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698