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

Unified Diff: components/signin/core/common/profile_management_switches.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/common/profile_management_switches.cc
diff --git a/components/signin/core/common/profile_management_switches.cc b/components/signin/core/common/profile_management_switches.cc
index 6d58837d6524fffdfd513194ed88e1a5fb44aeb4..768ae5cd9fec8e314c39382bd4f05c56eab05171 100644
--- a/components/signin/core/common/profile_management_switches.cc
+++ b/components/signin/core/common/profile_management_switches.cc
@@ -106,7 +106,7 @@ State GetProcessState() {
return state;
}
-bool CheckFlag(std::string command_switch, State min_state) {
+bool CheckFlag(const std::string& command_switch, State min_state) {
// Individiual flag settings take precedence.
if (base::CommandLine::ForCurrentProcess()->HasSwitch(command_switch))
return true;

Powered by Google App Engine
This is Rietveld 408576698