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

Unified Diff: chrome/browser/profiles/profile_list_desktop_unittest.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/profiles/profile_list_desktop_unittest.cc
diff --git a/chrome/browser/profiles/profile_list_desktop_unittest.cc b/chrome/browser/profiles/profile_list_desktop_unittest.cc
index bd79226cf028f4d07267c4ccb144e1d0e8790cba..553f875eb59fd8e848a02d107b135f0314d90cb8 100644
--- a/chrome/browser/profiles/profile_list_desktop_unittest.cc
+++ b/chrome/browser/profiles/profile_list_desktop_unittest.cc
@@ -73,7 +73,7 @@ class ProfileListDesktopTest : public testing::Test {
TestingProfileManager* manager() { return &manager_; }
- void AddOmittedProfile(std::string name) {
+ void AddOmittedProfile(const std::string& name) {
ProfileInfoCache* cache = manager()->profile_info_cache();
cache->AddProfileToCache(
cache->GetUserDataDir().AppendASCII(name), ASCIIToUTF16(name),

Powered by Google App Engine
This is Rietveld 408576698