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

Unified Diff: chrome/common/net/gaia/oauth_request_signer.cc

Issue 9705024: [Coverity] Fix pass-by-val to pass-by-ref (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 8 years, 9 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/net/gaia/oauth_request_signer.cc
diff --git a/chrome/common/net/gaia/oauth_request_signer.cc b/chrome/common/net/gaia/oauth_request_signer.cc
index a6bdf969fe862484a718f9fcae51e365fb55f949..81b750f7474f11704efcbb2dfe4f80b24cf7c7f8 100644
--- a/chrome/common/net/gaia/oauth_request_signer.cc
+++ b/chrome/common/net/gaia/oauth_request_signer.cc
@@ -78,7 +78,7 @@ const std::string SignatureMethodName(
std::string BuildBaseString(const GURL& request_base_url,
OAuthRequestSigner::HttpMethod http_method,
- const std::string base_parameters) {
+ const std::string& base_parameters) {
return StringPrintf("%s&%s&%s",
HttpMethodName(http_method).c_str(),
OAuthRequestSigner::Encode(
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698