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

Unified Diff: chrome/browser/sync/glue/autofill_profile_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/autofill_profile_model_associator.cc
diff --git a/chrome/browser/sync/glue/autofill_profile_model_associator.cc b/chrome/browser/sync/glue/autofill_profile_model_associator.cc
index 0680da868e85f62a6ca8fb27cdb07775b5d6f0a0..727c4011a7a25d2ca63348fed2920a452589f701 100644
--- a/chrome/browser/sync/glue/autofill_profile_model_associator.cc
+++ b/chrome/browser/sync/glue/autofill_profile_model_associator.cc
@@ -351,7 +351,7 @@ void AutofillProfileModelAssociator::Disassociate(int64 sync_id) {
}
int64 AutofillProfileModelAssociator::GetSyncIdFromChromeId(
- const std::string autofill) {
+ const std::string& autofill) {
AutofillToSyncIdMap::const_iterator iter = id_map_.find(autofill);
return iter == id_map_.end() ? sync_api::kInvalidId : iter->second;
}
« no previous file with comments | « chrome/browser/sync/glue/autofill_profile_model_associator.h ('k') | chrome/browser/sync/glue/bookmark_model_associator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698