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

Unified Diff: chrome/browser/history/url_index_private_data.cc

Issue 10382032: Coverity: Fix pass by value error. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 7 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: chrome/browser/history/url_index_private_data.cc
diff --git a/chrome/browser/history/url_index_private_data.cc b/chrome/browser/history/url_index_private_data.cc
index 522bf51044474ae80c45d55cdb39124abee5292d..93af77888ba636495f62bb981b50da1905c37fea 100644
--- a/chrome/browser/history/url_index_private_data.cc
+++ b/chrome/browser/history/url_index_private_data.cc
@@ -1094,7 +1094,7 @@ void URLIndexPrivateData::SaveWordStartsMap(
void URLIndexPrivateData::RestoreFromFileTask(
const FilePath& file_path,
scoped_refptr<URLIndexPrivateData> private_data,
- std::string languages) {
+ const std::string& languages) {
private_data = URLIndexPrivateData::RestoreFromFile(file_path, languages);
}

Powered by Google App Engine
This is Rietveld 408576698