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

Unified Diff: chrome/browser/sync/glue/autofill_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_model_associator.cc
diff --git a/chrome/browser/sync/glue/autofill_model_associator.cc b/chrome/browser/sync/glue/autofill_model_associator.cc
index 9047d2f271df26495d8fb652fe37df78c709c78e..cc5a37f9d5f5ede3347eacfa5155c3eac9d58872 100644
--- a/chrome/browser/sync/glue/autofill_model_associator.cc
+++ b/chrome/browser/sync/glue/autofill_model_associator.cc
@@ -393,13 +393,13 @@ AutofillModelAssociator::GetChromeNodeFromSyncId(int64 sync_id) {
}
bool AutofillModelAssociator::InitSyncNodeFromChromeId(
- std::string node_id,
+ const std::string& node_id,
sync_api::BaseNode* sync_node) {
return false;
}
int64 AutofillModelAssociator::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_model_associator.h ('k') | chrome/browser/sync/glue/autofill_model_associator2.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698