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

Unified Diff: google_apis/gaia/oauth2_token_service_test_util.cc

Issue 1349783006: Cleanup: Pass std::string as const reference if possible (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Revert third_party changes Created 5 years, 3 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
Index: google_apis/gaia/oauth2_token_service_test_util.cc
diff --git a/google_apis/gaia/oauth2_token_service_test_util.cc b/google_apis/gaia/oauth2_token_service_test_util.cc
index 6dbed5f8974903b75d09bc031db3db291442b396..597d61d6040f8b84a4fc7feff571abceb74eefaf 100644
--- a/google_apis/gaia/oauth2_token_service_test_util.cc
+++ b/google_apis/gaia/oauth2_token_service_test_util.cc
@@ -15,7 +15,7 @@ const char kValidTokenResponse[] =
"}";
}
-std::string GetValidTokenResponse(std::string token, int expiration) {
+std::string GetValidTokenResponse(const std::string& token, int expiration) {
return base::StringPrintf(kValidTokenResponse, token.c_str(), expiration);
}

Powered by Google App Engine
This is Rietveld 408576698