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

Unified Diff: components/signin/core/browser/about_signin_internals.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: components/signin/core/browser/about_signin_internals.cc
diff --git a/components/signin/core/browser/about_signin_internals.cc b/components/signin/core/browser/about_signin_internals.cc
index 1e2c98212babf5796b196ecb516b565359e777e2..514f1bf002ec134fe17e8e2d330df3fd8364ce04 100644
--- a/components/signin/core/browser/about_signin_internals.cc
+++ b/components/signin/core/browser/about_signin_internals.cc
@@ -343,11 +343,12 @@ void AboutSigninInternals::OnTokenRemoved(
NotifyObservers();
}
-void AboutSigninInternals::OnRefreshTokenReceived(std::string status) {
+void AboutSigninInternals::OnRefreshTokenReceived(const std::string& status) {
NotifySigninValueChanged(REFRESH_TOKEN_RECEIVED, status);
}
-void AboutSigninInternals::OnAuthenticationResultReceived(std::string status) {
+void AboutSigninInternals::OnAuthenticationResultReceived(
+ const std::string& status) {
NotifySigninValueChanged(AUTHENTICATION_RESULT_RECEIVED, status);
}

Powered by Google App Engine
This is Rietveld 408576698