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

Unified Diff: components/password_manager/core/browser/login_database_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/password_manager/core/browser/login_database_unittest.cc
diff --git a/components/password_manager/core/browser/login_database_unittest.cc b/components/password_manager/core/browser/login_database_unittest.cc
index 26285aeccaea08420db97301372a5d9cb25d060b..2868f813196ee138e32763b58271f18018bebe5b 100644
--- a/components/password_manager/core/browser/login_database_unittest.cc
+++ b/components/password_manager/core/browser/login_database_unittest.cc
@@ -1371,7 +1371,8 @@ class LoginDatabaseMigrationTest : public testing::TestWithParam<int> {
// Returns an empty vector on failure. Otherwise returns values in the column
// |column_name| of the logins table. The order of the
// returned rows is well-defined.
- template <class T> std::vector<T> GetValues(std::string column_name) {
+ template <class T>
+ std::vector<T> GetValues(const std::string& column_name) {
sql::Connection db;
std::vector<T> results;
if (!db.Open(database_path_))

Powered by Google App Engine
This is Rietveld 408576698