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

Unified Diff: chrome/browser/sync/glue/password_model_associator.cc

Issue 5577003: Coverity: Pass parameters by reference. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. Created 10 years 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/sync/glue/password_model_associator.cc
diff --git a/chrome/browser/sync/glue/password_model_associator.cc b/chrome/browser/sync/glue/password_model_associator.cc
index 1dacd360e29470cebd0f94bcfe8f0b127364b588..00ad4b98dec1741d5efb2aa9e20d789b74579355 100644
--- a/chrome/browser/sync/glue/password_model_associator.cc
+++ b/chrome/browser/sync/glue/password_model_associator.cc
@@ -205,7 +205,7 @@ bool PasswordModelAssociator::IsAbortPending() {
}
int64 PasswordModelAssociator::GetSyncIdFromChromeId(
- const std::string password) {
+ const std::string& password) {
PasswordToSyncIdMap::const_iterator iter = id_map_.find(password);
return iter == id_map_.end() ? sync_api::kInvalidId : iter->second;
}
« no previous file with comments | « chrome/browser/sync/glue/password_model_associator.h ('k') | chrome/browser/sync/glue/preference_model_associator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698