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

Unified Diff: components/user_prefs/tracked/tracked_preferences_migration_unittest.cc

Issue 1355983002: Cleanup: Pass std::string as const reference from components/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Revert to PS2 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/user_prefs/tracked/tracked_preferences_migration_unittest.cc
diff --git a/components/user_prefs/tracked/tracked_preferences_migration_unittest.cc b/components/user_prefs/tracked/tracked_preferences_migration_unittest.cc
index 7557f36bb1d46d6c6c0dc7d34d272449def89e34..ed44bbad4e2c3735ae570f52505d66dba9b670db 100644
--- a/components/user_prefs/tracked/tracked_preferences_migration_unittest.cc
+++ b/components/user_prefs/tracked/tracked_preferences_migration_unittest.cc
@@ -260,7 +260,7 @@ class TrackedPreferencesMigrationTest : public testing::Test {
// Determines whether |expected_pref_in_hash_store| has a hash in the Local
// State hash store.
- bool ContainsLegacyHash(std::string expected_pref_in_hash_store) {
+ bool ContainsLegacyHash(const std::string& expected_pref_in_hash_store) {
const base::DictionaryValue* hash_store_contents =
PrefServiceHashStoreContents(kHashStoreId, &local_state_).GetContents();
return hash_store_contents &&
« no previous file with comments | « components/user_manager/user_manager_base.cc ('k') | components/variations/service/variations_service_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698