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

Unified Diff: chrome/browser/android/history_report/delta_file_backend_leveldb.cc

Issue 1358783002: Cleanup: Pass std::string as const reference from chrome/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase against ToT 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/display/display_preferences.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/history_report/delta_file_backend_leveldb.cc
diff --git a/chrome/browser/android/history_report/delta_file_backend_leveldb.cc b/chrome/browser/android/history_report/delta_file_backend_leveldb.cc
index c1903cef2df5b598bdbc1dd63bf13d9104a187bc..554d94e88ea5dab8fe447a9750c5d0b7bd6c68ac 100644
--- a/chrome/browser/android/history_report/delta_file_backend_leveldb.cc
+++ b/chrome/browser/android/history_report/delta_file_backend_leveldb.cc
@@ -37,7 +37,9 @@ int64 GetLastSeqNo(leveldb::DB* db) {
return seq_no;
}
-void SaveChange(leveldb::DB* db, std::string url, std::string type) {
+void SaveChange(leveldb::DB* db,
+ const std::string& url,
+ const std::string& type) {
int64 seq_no = GetLastSeqNo(db) + 1;
history_report::DeltaFileEntry entry;
entry.set_seq_no(seq_no);
« no previous file with comments | « no previous file | chrome/browser/chromeos/display/display_preferences.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698