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

Unified Diff: chrome/browser/safe_browsing/incident_reporting/environment_data_collection_win.cc

Issue 776903002: Cleanup: Remove some unneeded string allocations. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix win Created 6 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/safe_browsing/incident_reporting/environment_data_collection_win.cc
diff --git a/chrome/browser/safe_browsing/incident_reporting/environment_data_collection_win.cc b/chrome/browser/safe_browsing/incident_reporting/environment_data_collection_win.cc
index aa0deb72ba4e097f3f4f13cc49d41253543fa822..8e8cd3040e971aba14db0ea5b0ce8f170c89ca90 100644
--- a/chrome/browser/safe_browsing/incident_reporting/environment_data_collection_win.cc
+++ b/chrome/browser/safe_browsing/incident_reporting/environment_data_collection_win.cc
@@ -124,8 +124,7 @@ void CollectModuleVerificationData(
ClientIncidentReport_EnvironmentData_Process_ModuleState* module_state =
process->add_module_state();
- module_state->set_name(
- base::WideToUTF8(std::wstring(modules_to_verify[i])));
+ module_state->set_name(base::WideToUTF8(modules_to_verify[i]));
brettw 2014/12/03 21:12:21 Note that this is the same since there's no wide s
// Add 1 to the ModuleState enum to get the corresponding value in the
// protobuf's ModuleState enum.
module_state->set_modified_state(static_cast<

Powered by Google App Engine
This is Rietveld 408576698