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

Unified Diff: chrome/browser/media_galleries/media_galleries_scan_result_controller.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: chrome/browser/media_galleries/media_galleries_scan_result_controller.cc
diff --git a/chrome/browser/media_galleries/media_galleries_scan_result_controller.cc b/chrome/browser/media_galleries/media_galleries_scan_result_controller.cc
index 1b791b28747fa702544d482954a50f9633a34ea6..263d1e7e162813eedd472bb7728c95cd1cd06ff9 100644
--- a/chrome/browser/media_galleries/media_galleries_scan_result_controller.cc
+++ b/chrome/browser/media_galleries/media_galleries_scan_result_controller.cc
@@ -329,7 +329,7 @@ void MediaGalleriesScanResultController::OnPreferenceUpdate(
}
void MediaGalleriesScanResultController::OnRemovableDeviceUpdate(
- const std::string device_id) {
+ const std::string& device_id) {
for (ScanResults::const_iterator it = scan_results_.begin();
it != scan_results_.end();
++it) {

Powered by Google App Engine
This is Rietveld 408576698