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

Unified Diff: chrome/browser/chromeos/display/display_preferences.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: chrome/browser/chromeos/display/display_preferences.cc
diff --git a/chrome/browser/chromeos/display/display_preferences.cc b/chrome/browser/chromeos/display/display_preferences.cc
index 45b242c24a8c029af79d71c730afc2f449c3e251..069ed6eaf24f87a3fd191bfedb7b26422885a938 100644
--- a/chrome/browser/chromeos/display/display_preferences.cc
+++ b/chrome/browser/chromeos/display/display_preferences.cc
@@ -80,7 +80,7 @@ std::string ColorProfileToString(ui::ColorCalibrationProfile profile) {
return "";
}
-ui::ColorCalibrationProfile StringToColorProfile(std::string value) {
+ui::ColorCalibrationProfile StringToColorProfile(const std::string& value) {
if (value == "standard")
return ui::COLOR_PROFILE_STANDARD;
else if (value == "dynamic")

Powered by Google App Engine
This is Rietveld 408576698