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

Unified Diff: chrome/browser/sync/glue/autofill_profile_model_associator.h

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.h
diff --git a/chrome/browser/sync/glue/autofill_profile_model_associator.h b/chrome/browser/sync/glue/autofill_profile_model_associator.h
index 8023676d51c46dc1ecfb0cf1ba5e01d3c046b1bf..048b5a45855c8abca4987fd44953d4ab9a437340 100644
--- a/chrome/browser/sync/glue/autofill_profile_model_associator.h
+++ b/chrome/browser/sync/glue/autofill_profile_model_associator.h
@@ -75,14 +75,14 @@ class AutofillProfileModelAssociator
return NULL;
}
- virtual bool InitSyncNodeFromChromeId(std::string node_id,
+ virtual bool InitSyncNodeFromChromeId(const std::string& node_id,
sync_api::BaseNode* sync_node) {
return false;
}
// Returns the sync id for the given autofill name, or sync_api::kInvalidId
// if the autofill name is not associated to any sync id.
- virtual int64 GetSyncIdFromChromeId(std::string node_id);
+ virtual int64 GetSyncIdFromChromeId(const std::string& node_id);
// Associates the given autofill name with the given sync id.
virtual void Associate(const std::string* node, int64 sync_id);
@@ -196,4 +196,3 @@ struct AutofillProfileModelAssociator::DataBundle {
} // namespace browser_sync
#endif // CHROME_BROWSER_SYNC_GLUE_AUTOFILL_PROFILE_MODEL_ASSOCIATOR_H_
-
« no previous file with comments | « chrome/browser/sync/glue/autofill_model_associator2.cc ('k') | chrome/browser/sync/glue/autofill_profile_model_associator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698