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

Unified Diff: components/dom_distiller/core/dom_distiller_store_unittest.cc

Issue 1349783006: Cleanup: Pass std::string as const reference if possible (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Revert third_party changes 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/dom_distiller/core/dom_distiller_store_unittest.cc
diff --git a/components/dom_distiller/core/dom_distiller_store_unittest.cc b/components/dom_distiller/core/dom_distiller_store_unittest.cc
index 0fec59746761fecd54bba47fd990a273bb22c710..c17d2e6a70a48098fba803ec72c36853d239a9c5 100644
--- a/components/dom_distiller/core/dom_distiller_store_unittest.cc
+++ b/components/dom_distiller/core/dom_distiller_store_unittest.cc
@@ -79,8 +79,10 @@ class FakeSyncChangeProcessor : public syncer::SyncChangeProcessor {
EntryMap* model_;
};
-ArticleEntry CreateEntry(std::string entry_id, std::string page_url1,
- std::string page_url2, std::string page_url3) {
+ArticleEntry CreateEntry(const std::string& entry_id,
+ const std::string& page_url1,
+ const std::string& page_url2,
+ const std::string& page_url3) {
ArticleEntry entry;
entry.set_entry_id(entry_id);
if (!page_url1.empty()) {

Powered by Google App Engine
This is Rietveld 408576698